Superscripts in strip labels of lattice plot
Peter et, al: As a minor note ,,,
On Fri, Jun 3, 2011 at 8:00 PM, Peter Ehlers <ehlers at ucalgary.ca> wrote:
David has given you the answer. I'll just add that you might want to widen the strips a bit if you use superscripted factor levels: ?xyplot(Sepal.Length ~ Sepal.Width | Species, data = iris, ? ? ?strip = strip.custom(factor.levels = expression( ? ? ? ? ?'A'^2,'A'^3,'A'^4)), ? ? ?par.settings = list(layout.heights = list(strip = 1.5)))
The quotes surrounding A^2, A^3, A^4 can be omitted. -- Bert
Peter Ehlers
Here is an example that comes up on a search with terms expression& strip.default (which I thought was the correct argument to the strip parameter but turns out I was not remembering my documentation correctly: http://finzi.psych.upenn.edu/R/Rhelp02/archive/57933.html -- David Winsemius, MD West Hartford, CT
______________________________________________ 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.
______________________________________________ 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.
"Men by nature long to get on to the ultimate truths, and will often be impatient with elementary studies or fight shy of them. If it were possible to reach the ultimate truths without the elementary studies usually prefixed to them, these would not be preparatory studies but superfluous diversions." -- Maimonides (1135-1204) Bert Gunter Genentech Nonclinical Biostatistics