plot a list of trellis objects
How about
lattice.plots <- list(xyplot(rnorm(10) ~ 1:10, type = "b"),
xyplot(rnorm(10) ~ 1:10, type = "b"),
xyplot(rnorm(10) ~ 1:10, type = "b"),
xyplot(rnorm(10) ~ 1:10, type = "b"))
do.call(grid.arrange, lattice.plots)
There is most likely a loop hidden somewhere in the do.call function ;-)
Yours sincerely / Med venlig hilsen
Frede Aakmann T?gersen
Specialist, M.Sc., Ph.D.
Plant Performance & Modeling
Technology & Service Solutions
T +45 9730 5135
M +45 2547 6050
frtog at vestas.com
http://www.vestas.com
Company reg. name: Vestas Wind Systems A/S
This e-mail is subject to our e-mail disclaimer statement.
Please refer to www.vestas.com/legal/notice
If you have received this e-mail in error please contact the sender.
-----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Santosh Sent: 18. februar 2014 01:41 To: r-help Subject: [R] plot a list of trellis objects Dear Rxperts Is there a way to control the display order (or simplistically control panel layout) of a list of trellis objects without using a for loop (or whatever)? I just realize that gridExtra has that feature.. (grid.arrange)... But, converting each of those elements of the list of trellis objects into an argument to grid.arrange seems to negate the simplicity.. In addition, if I were to use grid.arrange on a list of trellis objects, is there a way to pass the list elements as arguments to grid.arrange? If you have other suggestions, please do.. Regards, Santosh [[alternative HTML version deleted]]
______________________________________________ R-help at 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.