> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of hagric
> Sent: Monday, January 17, 2005 7:31 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] bold face labelling/expression
>
>
> 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.
My guess is you meant font.axis, rather than font.lab. However, it seems
like the group labels are not drawn by axis(), so that won't work either.
Uwe's suggestion should work:
> y <- rnorm(40, mean=10)
> groups <- factor(rep(c("H20", "Others"), each=20))
> boxplot(y ~ groups, names=c(expression(bold(H[2]*O)),
expression(bold("Others"))))
Andy
> Best regards
> H.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>