What about the example in gridExtra package:

require(ggplot2); require(lattice); require(gridExtra)
grid.arrange(qplot(1:10), xyplot(1:10~1:10), tableGrob(head(iris)), nrow=2, 
as.table=TRUE, main="test main", sub=textGrob("test sub", gp=gpar(font=2)))
On Wednesday, May 4, 2011 at 1:44 PM, Jonathan Daily wrote:
If you read the help documentation, lattice is not really compatible
> with standard graphics.
> 
> library("lattice")
> ?lattice
> 
> 2011/5/4 Lucia Cañas <lucia.ca...@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.ca...@co.ieo.es
> > http://www.ieo.es
> > 
> > 
> > 
> > [[alternative HTML version deleted]]
> > 
> > 
> > ______________________________________________
> > 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.
> 
> 
> 
> -- 
> ===============================================
> Jon Daily
> Technician
> ===============================================
> #!/usr/bin/env outside
> # It's great, trust me.
> 
> ______________________________________________
> 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.
> 

        [[alternative HTML version deleted]]

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

Reply via email to