[R] Highlighting points in a scatter plot matrix

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Mar 22 08:19:35 CET 2005


Brett Stansfield wrote:
> Dear R
> I recently did a scatterplot matrix using the following command
> pairs(sleep[c("SlowSleep", "ParaSleep", "logbw", "logbrw", "loglife",
> "loggest")],col=1+as.integer(ParaSleep > 5.5 | SlowSleep > 15.7))
> this highlighted outlying points for some of the x,y plots that I needed to
> identify. Unfortunately this highlights all the x,y plots some for which
> these points are not necessarily outliers. Is there a way to specify
> highlighting selected points at selected x,y plots within a matrix?

It's tricky, you would have to specify your own panel functions, 
probably even better using lattice.



> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list