Re: [R] Highlighting points in a scatter plot matrix

From: Uwe Ligges <>
Date: Tue 22 Mar 2005 - 18:19:35 EST

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.

> ______________________________________________
> mailing list
> PLEASE do read the posting guide! mailing list PLEASE do read the posting guide! Received on Tue Mar 22 18:23:36 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:52 EST