I have a list of ggplots from 1:10 called plot_1
,plot_2
....plot_10
.
I wanted to use cowplot to display all plots together.
How can I use plot.grid()
to call all plots? i.e I want to write something like
plot.grid(paste0("plot",1:10))
but this doesn't work - I get the error:
Error in ggplot_to_gtable(x) : Argument needs to be of class "ggplot" or "gtable"*