调整font.lab以获得plotmath表达式的粗体?

Epi*_*Man 6 r plotmath

使用以下代码,xlab将是粗体但是ylab不是.请你帮助我好吗

pdf()
par(font.axis=2, font.lab=2, cex.lab=1.2, cex.axis=1.2, cex.sub=1.2,
    mfrow=c(2,2), mar = c(5,6,3,1) + 0.1)
hist(ADAM, axes=F, main="", ylim=c(0,1000000), xlab="",
     ylab= expression(paste("number(",x10^6,")",sep="")))
axis(1,at=seq(0,1,0.2), labels=seq(0,1,0.2))
axis(2, at=seq(0,1000000,500000), labels=seq(0,1, by=0.5), las=2)
dev.off()
Run Code Online (Sandbox Code Playgroud)

谢谢

Did*_*rts 10

font.lab=2如果使用功能,则不会影响轴标签expression().你应该使用bold()里面的功能expression()来获得大胆的面孔.

hist (ADAM, axes=F, main="", ylim=c(0,1000000), 
    xlab="", ylab= expression(bold(paste("number(",x10^6,")",sep=""))))
Run Code Online (Sandbox Code Playgroud)