I have 8 plots and one legend that I would like to arrange in a 3x3 grid, so that the axes all align.
It works perfectly fine when I am not including the legend to my grid, but as soon as I have added the legend, my plots get shifted and are no longer aligned.
plot_grid(SiO2TiO2, SiO2Al2O3, SiO2FeO, SiO2MgO, SiO2CaO, SiO2Na2O, SiO2K2O, SiO2P2O5, align=c("hv"),nrow = 3, ncol = 3)
Plots aligned in a 3x3 grid without legend:
plot_grid(SiO2TiO2, SiO2Al2O3, SiO2FeO, SiO2MgO, SiO2CaO, SiO2Na2O, SiO2K2O, SiO2P2O5, legend, align=c("hv"),nrow = 3, ncol = 3)
Warning messages:
1: In align_plots(plotlist = plots, align = align) : Graphs cannot be vertically aligned. Placing graphs unaligned.
2: In align_plots(plotlist = plots, align = align) : Graphs cannot be horizontally aligned. Placing graphs unaligned.
Plots not aligned in a 3x3 grid with legend:
Anyone know how to align the legend with the plots? Thanks in advance!