[R] How to mix different font styles in axis label of lattice plot?
Paul Murrell
p.murrell at auckland.ac.nz
Sun Oct 5 20:46:24 CEST 2008
Hi
Judith Flores wrote:
> Hello,
>
> I have a y-axis label that reads: "S. schenckii yeast cells". The
> part that reads "S. schenckii" needs to be in italic style, the rest
> of the text is normal style. How can I specify the different font
> styles for each part of the y-axis label?
You can use R's 'plotmath' facility to do this ...
plot(1, ylab=expression(paste(italic("S. schenckii"), " yeast cells")))
Paul
> Thank you,
>
> Judith
>
> ______________________________________________ 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.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/
More information about the R-help
mailing list