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) Kathy [[alternative HTML version deleted]]
Hi Kathy, Try plot(10, xlab = "Week", ylab = expression(bold("B removal rate "*"(mg/"*m^3*"-d)"))) HTH, Jorge On Wed, 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) > > > Kathy > > [[alternative HTML version deleted]] > > ______________________________________________ > 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]]
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