[R] Nested layout()
Dario Strbenac
D.Strbenac at garvan.org.au
Fri Dec 17 04:00:27 CET 2010
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()
--------------------------------------
Dario Strbenac
Research Assistant
Cancer Epigenetics
Garvan Institute of Medical Research
Darlinghurst NSW 2010
Australia
More information about the R-help
mailing list