Dear colleagues, I have a great problem in using "expression" for axes labels. I want the labels in bold face (i.e.: par(font.lab=2)). When typing boxplot(y ~ groups, names = "" , xlab = "", ylab = "", axes = F) axis(side=1, at=c(1,2), xlab=c(expression(H[2]*O),"others")), I do not get a bold face labelling. Does anyone know, how I could proceed? Thank you very much. Best regards V.H.
Vera Hofer wrote:> Dear colleagues, > > I have a great problem in using "expression" for axes labels. I want the > labels in bold face (i.e.: par(font.lab=2)). When typing > > boxplot(y ~ groups, names = "" , xlab = "", ylab = "", axes = F) > axis(side=1, at=c(1,2), xlab=c(expression(H[2]*O),"others")),1. If you don't mean "labels" instead of "xlab" in the axis() call, use xlab in the boxplot() call or in a call to title() (but then, you cannot use c(expression(), ...). 2. See ?plotmath and use, e.g., bold(H[2]*O) ... Uwe Ligges> I do not get a bold face labelling. Does anyone know, how I could proceed? > Thank you very much. > > Best regards > V.H. > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > R-project.org/posting-guide.html