Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

How To Edit Common Legend Title In ggarrange?

$
0
0

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.


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>