ggplot2: Adjust the symbol size in legends
You should use:
theme(legend.key.size = unit(3,"line"))
You can make these kinds of changes manually using the override.aes
argument to guide_legend()
:
g <- g + guides(shape = guide_legend(override.aes = list(size = 5)))
print(g)