layout - How can I return to previous frame in R? -
i'm doing plot in r using simple layout:
layout(matrix(c(1,2),1,2)) after have drawn 2 sides of plot, need homecoming first draw 2 more lines (that span other side, , after drawing sec side know right coordinates).
i know can utilize frame() move between frames, goes forward, , when returns beginning, clears whole drawing. possible move frame back?
despite warnings can utilize par(mfg=...) command focus of plotting when using layout:
layout(matrix(1:4,2,2)); plot(1:10, 1:10); plot(10:1, 1:10); par(mfg=c(1,1)); abline(h=5) i not have expected dev.set(dev.prev()) work since think it's beingness written same device.
r layout plot frame
No comments:
Post a Comment