[R] symbols in lattice
ripley@stats.ox.ac.uk
ripley at stats.ox.ac.uk
Tue Apr 16 09:47:53 CEST 2002
On Tue, 16 Apr 2002, Torsten Hothorn wrote:
>
> Dear plotting experts,
>
> 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.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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