alittleboy alittleboy - 1 year ago 157
R Question

increase legend font size ggplot2

Is there a way to increase the font size in

? I think I need to specify something like
legend.key.width = unit(2, "line")
in the
function, but that is used to adjust the keys in legends, not the font sizes. Thanks!

Answer Source

You can use theme_get() to display the possible options for theme. You can control the legend font size using:

+ theme(legend.text=element_text(size=X))

replacing X with the desired size.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download