The attached picture is from the following article and is using ggarrange to merge those plots: http://www.sthda.com/english/articles/24-ggpubr-publication-ready-plots/81-ggplot2-easy-way-to-mix-multiple-graphs-on-the-same-page/
ggarrange(sp, # First row with scatter plot
ggarrange(bxp, dp, ncol = 2, labels = c("B", "C")), # Second row with box and dot plots
nrow = 2,
labels = "A" # Labels of the scatter plot
)
I would like to create the same plot, but instead of having two smaller plots in the bottom and a larger one on the top, I would like to inverse it: Two small plots (A and B) on the top and a larger plot C in the bottom
I tried using the following code with no success:
ggarrange(
plot1, plot2,
ggarrange(plot3, nrow = 2, labels = c("C")),
ncol = 2,
labels = c("A","B")
)
With this code I just see plot3 in the top left corner.
The patchwork package makes this stuff a bit easier
library(patchwork)
(plot1 | plot2) / plot3 + plot_annotation(tag_levels ="A")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With