I am confused. What is the right way to increase font size of text in the title, labels and other places of a plot?
For example
x <- rnorm(100)
h
By trial and error, I've determined the following is required to set font size:
cex doesn't work in hist(). Use cex.axis for the numbers on the axes, cex.lab for the labels.cex doesn't work in axis() either. Use cex.axis for the numbers on the axes.hist(), you can set them using mtext(). You can set the font size using cex, but using a value of 1 actually sets the font to 1.5 times the default!!! You need to use cex=2/3 to get the default font size. At the very least, this is the case under R 3.0.2 for Mac OS X, using PDF output.pointsize in pdf().I suppose it would be far too logical to expect R to (a) actually do what its documentation says it should do, (b) behave in an expected fashion.