I was wondering if it is possible to call a plot from a value. Something like this:
MyPlot <- plot(1:10,2:11)
MyPlot # Now the plot should appear
But this is not working. I also tried plot(MyPlot) and print(MyPlot).
Do you guy have any ideas?
My intention is to fill a matrix of plots
layout(matrix(1:4,ncol=2))
MyPlot
MyPlot2
MyPlot3
MyPlot4
layout(1)
Thank you!