Re: [R] superimposing xyplots on same scale

2009-09-25 Thread baptiste auguie
2009/9/25 Felix Andrews fe...@nfrac.org: Sorry, doubleYScale is not appropriate, since you specifically want a common y scale. I think Baptiste was suggesting to use layer(), rather than as.layer(): Truth be told, I wasn't quite sure what the initial request meant. I took it quite literally,

[R] superimposing xyplots on same scale

2009-09-24 Thread Larry White
I have two xyplots that i want to superimpose (code below). By default they are displayed on slightly different y scales (one runs from 10 to 25, the other from 10 to 30). I would like to force them both onto the same scale (10 to 30) so the relation between the two is clear. Is there a way to do

Re: [R] superimposing xyplots on same scale

2009-09-24 Thread baptiste auguie
Hi, try ?as.layer in the latticeExtra package. HTH, baptiste 2009/9/24 Larry White ljw1...@gmail.com: I have two xyplots that i want to superimpose (code below).  By default they are displayed on slightly different y scales (one runs from 10 to 25, the other from 10 to 30). I would like to

Re: [R] superimposing xyplots on same scale

2009-09-24 Thread Felix Andrews
Um, no, please use doubleYScale() in latticeExtra, rather than as.layer(). However, in your case, why don't you just do a standard lattice plot like xyplot(time_pct + pct_compl ~ date, par.settings = simpleTheme(col = c(blue, red)), type=b, pch=15, ...) If you gave a reproducible

Re: [R] superimposing xyplots on same scale

2009-09-24 Thread Felix Andrews
Sorry, doubleYScale is not appropriate, since you specifically want a common y scale. I think Baptiste was suggesting to use layer(), rather than as.layer(): something like xyplot(pct_compl ~ date, col=red, ...) + layer(panel.xyplot(date, time_pct, col = blue)) But again, I would