In R, how to get powers of ten in bold font in a plot label?
- by wfoolhill
I want to have "10^4 points" in bold as my x-axis label.
I know how to make a simple label in bold:
plot(1:10, xlab="")
mtext(text="10 points", side=1, font=2, line=3)
Thanks to this answer, I know how to make a label with a power of ten but nothing is in bold:
mtext(text=expression(paste(10^4, " points")), side=1, font=2, line=3)
Thanks to…