Re: [R] Lattice: Customizing point-sizes with groups

2009-03-10 Thread Paul C. Boutros
: Tuesday, March 10, 2009 12:01 PM To: Paul C. Boutros Cc: r-help@r-project.org Subject: Re: [R] Lattice: Customizing point-sizes with groups Sorry, I missed your point the first time. Why not create a group for each subset then? xyplot(y ~ x, temp, groups = interaction(cex, groups), par.settings

Re: [R] Lattice: Customizing point-sizes with groups

2009-03-10 Thread Paul C. Boutros
.@utoronto.ca Cc: r-help@r-project.org Subject: Re: [R] Lattice: Customizing point-sizes with groups Try this: xyplot(y ~ x, temp, groups = groups, par.settings = list( superpose.symbol = list( cex = c(1, 3), pch = 19, col = c("blue", "red&q

Re: [R] Lattice: Customizing point-sizes with groups

2009-03-10 Thread Sundar Dorai-Raj
ividual > data-points and seem only to be able to customize entire groups. > > Paul > > -Original Message- > From: Sundar Dorai-Raj [mailto:sdorai...@gmail.com] > Sent: Tuesday, March 10, 2009 5:49 AM > To: paul.bout...@utoronto.ca > Cc: r-help@r-project.org >

Re: [R] Lattice: Customizing point-sizes with groups

2009-03-10 Thread Sundar Dorai-Raj
Try this: xyplot(y ~ x, temp, groups = groups, par.settings = list( superpose.symbol = list( cex = c(1, 3), pch = 19, col = c("blue", "red" See: str(trellis.par.get()) for other settings you might want to change. Also, you should drop the ";

[R] Lattice: Customizing point-sizes with groups

2009-03-09 Thread Paul Boutros
Hello, I am creating a scatter-plot in lattice, and I would like to customize the size of each point so that some points are larger and others smaller. Here's a toy example: library(lattice); temp <- data.frame( x = 1:10, y = 1:10, cex = rep( c(1,3), 5), gr