[R] Arranging multiple lattice plots in one page

Markus Gesmann Markus.Gesmann at libero.uk.com
Fri Nov 16 18:32:52 CET 2007


Hi Judith,

See the example in the xyplot help page, using the print function:


  plot <- xyplot(sunspot.year ~ 1700:1988, xlab = "", type = "l",
                    scales = list(x = list(alternating = 2)),
                    main = "Yearly Sunspots")
     print(plot, position = c(0, .3, 1, .9), more = TRUE)
     print(update(plot, aspect = "xy", main = "", xlab = "Year"),
           position = c(0, 0, 1, .3))

Kind regards

Markus


Markus Gesmann │Associate Director│Libero Ventures Ltd, One Broadgate, London EC2M 2QS
tel: +44 (0)207 826 9080│ dir: +44 (0)207 826 9085│fax: +44 (0)207 826 9090
www.libero.uk.com

AUTHORISED AND REGULATED BY THE FINANCIAL SERVICES AUTHORITY

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Judith Flores
Sent: 16 November 2007 15:47
To: RHelp
Subject: [R] Arranging multiple lattice plots in one page

Hi,

   I am trying to arrange 3 different lattice plots in
one page. I tried defining par and layout without
success.

What I wrote looks something like this:

par(mfrow=c(3,1))

barplot(...)
xyplot(...)
barplot(...)




      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page.

______________________________________________
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.

This message is intended for the personal and confidential use for the designated recipient(s) named above.  If you are not the intended recipient of this message you are hereby notified that any review, dissemination,  distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction or as an official statement of Libero Ventures Ltd.  Email transmissions cannot be guaranteed to be secure or error-free. Therefore we do not represent that this information is complete or accurate and it should not be relied upon as such.  All information is subject to change without notice.



More information about the R-help mailing list