[R] Mathematical expressions in the group labels in lattice
dwinsemius at comcast.net
Tue Sep 13 15:30:31 CEST 2011
On Sep 13, 2011, at 8:30 AM, Timo Schmid wrote:
> I am working with the lattice package and I want to label to groups
> in the xyplots with mathematical expressions.
> I short example for this
> This results in two scatter plots with label "1" and "2". I would
> like to substitute this labels by math expression. I used the
> following code
> levels(Case) <- c(expression(R^2),expression(sigma_[i]))
> But the label did not change to mathematical expressions. Any ideas?
You should be looking at the strip.custom function. It has worked
> Thank you very much for your help.
David Winsemius, MD
West Hartford, CT
More information about the R-help