wilkelab / cowplot

cowplot: Streamlined Plot Theme and Plot Annotations for ggplot2
https://wilkelab.org/cowplot/
701 stars 84 forks source link

Plotting ggplots 'by column' with plot_grid() #161

Closed Dicky3333 closed 4 years ago

Dicky3333 commented 4 years ago

Currently the plot_grid() function draws ggplots by row. It would be nice if the function accepts an additional boolean parameter say 'byrow' (similar to the one in the matrix() function) and then plots ggplots either by row or by column. This would avoid users to go through an extra step of getting the plots in the desired order in the 'plotlist' argument.

Here is a link to the related discussion on stackoverflow.com: https://stackoverflow.com/questions/63074633/draw-ggplots-in-the-plot-grid-by-column-plot-grid-function-of-the-cowplot-pa/63077508?noredirect=1#comment111656039_63077508