Are Pos and Consld -- which CANNOT be in Stops -- the same length unsubscripted as the subscripted variables? Do all the combinations of levels of these variables actually occur (you can check with table() )?
You would also probably do better to use the subset argument of xyplot to subset the data to be plotted. -- Bert On Sun, Mar 20, 2011 at 1:06 PM, askh <akhasan...@nawaz.org> wrote: > Hi all, > > I am having a problem using xyplot from lattice library. I am plotting one > variable against another one, conditioning on two other variablesm one of > which has 3 levels and the other 6 levels. The output is thus a 6x3 panel > plot. Here's my code: > > print((xyplot(CloDurPercent[CloDurNA != 'NA' & Mscor<3.5]~ConsDur[CloDurNA > != 'NA' & Mscor<3.5]|Pos*ConsId, data = Stops, pch = '.')) > > One of the panels is not plotting the data in it -- it remains blank. I > first thought that I had some problem with this particular data subset but > no, when I reordered levels and plotted the data again, a different subset > is not showing up in the same panel as before. This is the outcome whether I > print on the Quartz device or save the plot to a .ps file. What's going on? > Is there some hardware/software interaction problem? I am using R 1.14 on > MacOS X 10.3.9. > > Thanks, > > alina > > -- > View this message in context: > http://r.789695.n4.nabble.com/problem-with-xyplot-tp3391822p3391822.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@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. > -- Bert Gunter Genentech Nonclinical Biostatistics ______________________________________________ R-help@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.