[R] Plotting symbols and colors based upon data values

From: Mark Linderman <mark.linderman_at_gmail.com>
Date: Sat, 12 Mar 2011 19:57:29 -0500


I am new to R and am sure this is simple, but I been unable to find a solution.

I have 5 columns of data labeled "X", "Y", "A","B","C". I can easily xyplot(Y ~ X | A) but I want the colors of the symbols to be based upon the values of B and the shape of the symbols to be determined by C. There are approximately four distinct values of B and C (say "b1","b2","b3","b4" and "c1","c2","c3","c4", respectively)  

Either a solution or a pointer to a specific reference/example is greatly appreciated.

Thanks,

Mark           

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sun 13 Mar 2011 - 02:27:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Mar 2011 - 03:40:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive