[R] Highlighting points in a scatter plot matrix

Brett Stansfield brett at hbrc.govt.nz
Mon Mar 21 23:08:54 CET 2005


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?




More information about the R-help mailing list