How do I edit a common legend title (make it bold font and enlarge the font size) using ggarrange
?
Based on the six plots I have (p1 to p6), I thought the following would work:
p6 <- p6 + theme(legend.title = element_text(size = 15, face = "bold")
The below ggarrange
was used to combine the six plots:
p <- ggarrange(p1, p2, p3, p4, p5, p6,
common.legend = TRUE,
legend = "bottom",
labels = c("1", "2", "3", "4", "5", "6"),
# font.label = list(size = 10, color = "green"),
nrow = 2, ncol = 4
)
However, this does not change the common legend anything.