Re: [R] combine lattice plot and standard R plot

From: Scott Chamberlain <scttchamberlain4_at_gmail.com>
Date: Wed, 04 May 2011 13:47:20 -0500

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

        [[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. Received on Thu 05 May 2011 - 06:25:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 05 May 2011 - 07:00:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive