Consider the following graph:
require(ggplot2)
ggplot(iris, aes(Sepal.Length, Sepal.Width)) + geom_point() +
labs(title = 'Iris[small font]' ) +
theme_classic()
The Left graph is the code output, the right graph shows the desired result, I used Adobe Illustrator for that
The question is, if it is possible to change the font size in line, in this example the "[small font]" label in the title, but of course it is a general question also regarding other labels such as for the axes and legend etc.
Obviously, the font size is set with theme()
. However, there might be a way setting a "relative font size", e.g. using rel()
and using this somehow with a labeller function??
Then, there's: