An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110504/ec1c7e6d/attachment.pl>
combine lattice plot and standard R plot
6 messages · Lucia Cañas, Jonathan Daily, Scott Chamberlain +3 more
If you read the help documentation, lattice is not really compatible
with standard graphics.
library("lattice")
?lattice
2011/5/4 Lucia Ca?as <lucia.canas at co.ieo.es>:
Dear R users, I would like to combine lattice plot (xyplot) and standard R plot (plot and plotCI) in an unique figure. I use the function "par()" to combine plot and plotCI and I use the function "print()" to combine xyplot. I tried to use these functions to combine xyplot and plotCI and plots but they do not work. Does anybody know how I can do this? Thank you very much in advance. Luc?a Ca??s Ferreiro Instituto Espa?ol de Oceanograf?a Centro Oceanogr?fico de A coru?a Paseo Mar?timo Alcalde Francisco V?zquez, 10 15001 - A Coru?a, Spain Tel: +34 981 218151 ?Fax: +34 981 229077 lucia.canas at co.ieo.es http://www.ieo.es ? ? ? ?[[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.
=============================================== Jon Daily Technician =============================================== #!/usr/bin/env outside # It's great, trust me.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110504/6b247dfb/attachment.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110504/7bf84bf8/attachment.pl>
Hi: If it's doable, you'll probably need the gridBase package. Fortunately, it has a nice vignette to get you started, which tells you at the end that there are limitations in compatibility between base and grid graphics (lattice is built on the latter). HTH, Dennis 2011/5/4 Lucia Ca?as <lucia.canas at co.ieo.es>:
Dear R users, I would like to combine lattice plot (xyplot) and standard R plot (plot and plotCI) in an unique figure. I use the function "par()" to combine plot and plotCI and I use the function "print()" to combine xyplot. I tried to use these functions to combine xyplot and plotCI and plots but they do not work. Does anybody know how I can do this? Thank you very much in advance. Luc?a Ca??s Ferreiro Instituto Espa?ol de Oceanograf?a Centro Oceanogr?fico de A coru?a Paseo Mar?timo Alcalde Francisco V?zquez, 10 15001 - A Coru?a, Spain Tel: +34 981 218151 ?Fax: +34 981 229077 lucia.canas at co.ieo.es http://www.ieo.es ? ? ? ?[[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.
On May 04, 2011 at 8:26pm Lucia Ca?as wrote:
I would like to combine lattice plot (xyplot) and standard R plot (plot and plotCI) in an unique figure.
Hi Lucia, Combining the two systems can be done. See: Paul Murrell. Integrating grid graphics output with base graphics output. R News, 3(2):7-12, October 2003 http://cran.r-project.org/doc/Rnews/Rnews_2003-2.pdf Hope this helps. Regards, Mark. ----- Mark Difford (Ph.D.) Research Associate Botany Department Nelson Mandela Metropolitan University Port Elizabeth, South Africa -- View this message in context: http://r.789695.n4.nabble.com/combine-lattice-plot-and-standard-R-plot-tp3496409p3497717.html Sent from the R help mailing list archive at Nabble.com.