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? Thanks a lot in Advance. Alej
Hi You may need to investigate ?plotmath and ?expression for the italics or possibly add a font=... somewhere Sorry cannot be more help it is too late here Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England ARMIDALE NSW 2351 Email home: mackay at northnet.com.au At 22:50 13/09/2010, you 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? > >Thanks a lot in Advance. > >Alej > >______________________________________________ >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.
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
Hi: demo(graphics) has a lot of nice examples of how to use various features - one of them is font selection. font = 3 => italic font = 4 => bold italic You need to select the correct aspect of the plot, however: font.main, font.sub, font.lab or font.axis (from par()). HTH, Dennis On Mon, Sep 13, 2010 at 5:50 AM, Alejo C.S. <alej.c.s@gmail.com> 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? > > Thanks a lot in Advance. > > Alej > > ______________________________________________ > 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. >[[alternative HTML version deleted]]
Thanks all for the excellent help! Kind regards, Alej 2010/9/13 Dennis Murphy <djmuser at gmail.com>:> Hi: > > demo(graphics) has a lot of nice examples of how to use various features - > one of them is font selection. > > font = 3? => italic????????????? font = 4 => bold italic > > You need to select the correct aspect of the plot, however: font.main, > font.sub, font.lab or font.axis (from par()). > > HTH, > Dennis > > On Mon, Sep 13, 2010 at 5:50 AM, Alejo C.S. <alej.c.s at gmail.com> 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? >> >> Thanks a lot in Advance. >> >> Alej >> >> ______________________________________________ >> 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. > >