I like the default theme for cowplot
, but I want to make some alterations. For example, I'd like to be able to adjust the default for legend.key
. A MWE,
library(ggplot2); library(cowplot)
plt = ggplot(mtcars, aes(x = mpg, y = wt, color = factor(cyl))) + geom_point() + theme(legend.key = element_rect(color = 'black'))
plt
Is there any way of adjusting the cowplot
theme without having to redefine the whole dang thing manually?