[R] Bold in expression in Y label
David Winsemius
dwinsemius at comcast.net
Thu Aug 25 04:20:55 CEST 2011
On Aug 24, 2011, at 9:10 PM, Katherine Lizama Allende wrote:
> Hi all:
>
> I need to put bold font in the y label, which is an expression at
> the same
> time
>
> When putting font.lab=2 in plot, it only puts bold font for the x axis
> label.. what should I do? Thanks very much
>
> plot(jitter(c(1, 4, 7, 9, 11, 13), a=0.1), y = Bllim.m, xlab =
> "Week", ylab
> = expression(paste("B removal rate", " (mg/m"^{3}, "-
> d)")),font.lab=2, ylim
> = c(-1000,9000), xlim = c(0, 14), pch = 22, axes= FALSE, cex = 0.1)
>
I don't know why, (and I was not familiar with font.lab as an
arguemnt, nor can I find its documentation) ... but I can offer a
solution:
plot(1,1, xlab = "Week", font.lab=2,ylab =
expression(bold(B~removal~rate~mg/m^{3}*-d)), cex = 0.1)
--
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
More information about the R-help
mailing list