[R] symbols in lattice
Paul Murrell
p.murrell at auckland.ac.nz
Fri Apr 19 01:21:06 CEST 2002
Hi
> > I simply can't figure out how I can force bwplot to print mathematical
> > symbols in the strips.
> >
> > Example:
> >
> > x <- rnorm(30)
> > lab <- factor(c(rep("one", 10), rep("two", 10), rep("three", 10)))
> > bwplot(~ x | lab)
> >
> > gives labels "one", "two", "tree" but I would like to change this into
> > expression(lambda == 1), expression(lambda == 2) and expression(lambda
==
> > 3).
> >
> > The only way to modify the labels is changing the levels of lab, right?
Or
> > is there something else?
>
> You can set your own strip function to replace strip=strip.default
> However, I am not aware that grid functions (on which lattice is based) do
> plotmath. ?grid.text suggests not.
>
> label: A vector of strings to draw.
Unfortunately, grid.text() does not handle mathematical expressions yet (and
will not in grid_0.6 which will be released with R 1.5.0). It is on the
todo list.
Paul
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list