On 2011-06-03 15:10, David Winsemius wrote:

On Jun 3, 2011, at 5:38 PM, Judith Flores wrote:

Hello,

   I need to add superscripts of the strip labels of a xyplot.

For example:


xyplot(a~b|c)

   Where c has 3 factor levels: A^2, A^3 and A^4. How can I introduce
expressions in the strip labels?

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

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

Reply via email to