[R] adding plots to existent multiuple plots

Jannis bt_jannis at yahoo.de
Tue Jan 11 19:13:27 CET 2011


Dear list members,


does anybody know a way how to add plots to already existing subplots created with layout? I have created two subplots via

layout(matrix(1:2))

and would like to add different plots to each of them. As I need to load data in between I need to add a plot to the first subplot, then the second, load data, and add a plot to the first again, followed by the second. Therefore I can not plot all plots in subplot 1 first, change the active plot and fill subplot 2.

Is there a way to set the subplots to be the active plotting region repeatedly?


Thanks in advance
Jannis





More information about the R-help mailing list