I have to write a document and the instructions are really stricts. The text size has to be 7pt inside all figures (axis labels, ticks labels, legends). For some reasons I use the base graphics package and cannot use extra packages like ggplot2. In the options of “graphics” (?par), I only see this cex parameter and derivatives that permit to fix the text size relative to a default size.
What is the default font size of R graphics ?
For all of R’s graphical devices, the default text size is 12 points but it can be reset by including a
pointsizeargument to the function that opens the graphical device. From?pdf:For example, open a device like this:
and then, after plotting to it, close it with
dev.off().