Judith Flores
2008-Oct-03 14:34 UTC
[R] How to mix different font styles in axis label of lattice plot?
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? Thank you, Judith
Paul Murrell
2008-Oct-05 18:46 UTC
[R] How to mix different font styles in axis label of lattice plot?
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/