Re: [R] Calling symbols from dataframe for xyplot

2011-02-11 Thread Greg Snow
-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of John Poulsen Sent: Thursday, February 10, 2011 2:22 PM To: r-help@r-project.org Subject: [R] Calling symbols from dataframe for xyplot Hello, I am trying to make a xyplot plot with points that are different symbols. I

[R] Calling symbols from dataframe for xyplot

2011-02-10 Thread John Poulsen
Hello, I am trying to make a xyplot plot with points that are different symbols. I want to call the symbol type (pch) from a column in my dataframe. Here is a simplified example. In my real example I also have groups, which I have not included here. This example doesn't change the symbols

Re: [R] Calling symbols from dataframe for xyplot

2011-02-10 Thread Dennis Murphy
Hi: It's not a perfect solution, but an 'easy' way out is to recognize that some symbols are open and some are filled. If you want fill, use a filled symbol and then change the color. p - rep(16:18, 4) x-c(1:12) y-c(rpois(12,4)) grp-c(rep(c(3,4), each=6)) z-c(rep(c(1,2), each=6)) dd -