Re: [R] Calling symbols from dataframe for xyplot

2011-02-11 Thread Greg Snow
The more common way to do this is to use groups, the default is to have a different color for each group, but you can change that using trellis.par.set: tmp <- trellis.par.get() tmp$superpose.symbol$pch = 0:10 trellis.par.set(tmp) xyplot(Sepal.Width ~ Petal.Width, data=iris, groups=Species, auto

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 <- data.