legend text size in ggplot2 code example Example: ggplot legend size plot + theme(legend.key.size = unit(2, "cm"))