On Thu, Dec 16, 2010 at 7:00 PM, Dario Strbenac <d.strbe...@garvan.org.au> wrote: > Hello, > > Is it possible to call a graphing function that uses layout() multiple times > and layout those outputs ? Here's a minimal example : > > myplot <- function() > { > layout(matrix(1:2, nrow=1), widths = c(1, 1)) > plot(1:10) > plot(10:1) > } > > layout(matrix(1:2), heights = c(1, 2)) > myplot() > myplot()
layout() will always start a new layout of plots. AFAIK there's no way to make it recursive. Peter ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.