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

John G. Bullock john.bullock at yale.edu
Sat Mar 5 13:59:43 CET 2011


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



More information about the R-help mailing list