You can also specify the font size relative to base_size included in topics such as theme_bw() (where base_size is 11) using the rel() function.
For example:
ggplot(mtcars, aes(disp, mpg, col=as.factor(cyl))) + geom_point() + theme_bw() + theme(legend.text=element_text(size=rel(0.5)))
Megatron Dec 21 '17 at 17:29 2017-12-21 17:29
source share