View source: R/plot_batch_effect.R
grid_arrange_common_legend | R Documentation |
Plot listed plots with one common legend
grid_arrange_common_legend( plot_lists, nrow = 1, ncol = length(plot_lists), position = c("bottom", "right") )
plot_lists |
The list of ggplots |
nrow |
Numeric, number of rows to arrange the plots |
ncol |
Numeric, number of columns to arrange the plots. |
position |
Character, Position of the legend, either "bottom" or "right". |
combained ggplot
gg_a <- grid_arrange_common_legend(plot_lists = plots, nrow = 2, ncol = 2, position = "right")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.