[R] lattice: Set x-axis in italics only
David Winsemius
dwinsemius at comcast.net
Mon Sep 13 16:06:23 CEST 2010
On Sep 13, 2010, at 8:50 AM, Alejo C.S. wrote:
> Dear list, I making some box-and-whisker plots in R with vertebrate
> data. The x axis are species names that must be in italics. I tried
> with the "axis" function but no luck, and it seems that affects both
> axes.
> Any tip?
In bwplot just add:
..., scales=list(x=list(font=3)),
In this case (and I suppose many others) lattice is much more flexible
than base. I initially tried what appeared to be valid strategies with
boxplot and ended up tied in knots. Then I noticed your subject line
and it was trivial.
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list