Re: [R] lattice: drawing strips for single-panel plots

From: John G. Bullock <john.bullock_at_yale.edu>
Date: Sat, 05 Mar 2011 07:59:43 -0500

>
>> The strip argument to panel.xyplot seems to be ignored for
>> single-panel plots.

> The workaround is to give it a one-level factor:
>
> library(lattice)
> data(Chem97, package = "mlmRev")
> Chem97$what = as.factor("strip text")
> densityplot(~ gcsescore|what, data = Chem97)

Thank you. That works.

John



R-help_at_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. Received on Sat 05 Mar 2011 - 15:32:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 05 Mar 2011 - 15:40:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive