Add the following line before you build your plots to make the font bold and blue ggplot2::theme_update(plot.tag = element_text(face = "bold", colour = "blue"))įor more information on customising the theme of ggplot2, see here. Hi everyone, this video discusses how to create multi-panel plots in ggplot2 as well as combine multiple plots into one figure using ggarrange. ![]() If you want to change the labelling style, you can either set this individually for each plot or set a theme default. Myplot4 <- ggplot(mydata, aes(x=d, y=a)) + geom_point() + labs(tag = "D") Myplot3 <- ggplot(mydata, aes(x=c, y=d)) + geom_point() + labs(tag = "C") Myplot2 <- ggplot(mydata, aes(x=b, y=c)) + geom_point() + labs(tag = "B") ![]() Myplot1 <- ggplot(mydata, aes(x=a, y=b)) + geom_point() + labs(tag = "A") Adapting the reproducible example provided by Kev: library(ggplot2) This means that no altering of grobs is required.
0 Comments
Leave a Reply. |