Is there a way to increase the font size in ggplot2
? I think I need to specify something like legend.key.width = unit(2, "line")
in the theme
function, but that is used to adjust the keys in legends, not the font sizes. Thanks!
R – increase legend font size ggplot2
ggplot2r
Related Topic
- R – Drop data frame columns by name
- R – Adjust position and font size of legend title in ggplot2
- R – Add legend to ggplot2 line plot
- R – Increase number of axis ticks
- R – How to add a ggplot2 subtitle with different size and colour
- R – How to we make xkcd style graphs
- R – Turning off some legends in a ggplot
- R – data.table vs dplyr: can one do something well the other can’t or does poorly
Best Answer
You can use
theme_get()
to display the possible options for theme. You can control the legend font size using:replacing X with the desired size.