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

2011-05-05 Thread Mark Difford
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):

[R] combine lattice plot and standard R plot

2011-05-05 Thread Lucia Cañas
Thank you very much for your help and for your quick answers. 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

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

2011-05-04 Thread Dennis Murphy
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 : > Dear

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

2011-05-04 Thread Abhijit Dasgupta
Hi, All of the components in the grid.arrange statement are from ggplot2 and lattice, which are both in turn based on the grid package. What grid.arrange is able to do is use the grid framework to arrange the individual plots on a page. The base graphics are not based on grid, and so won't wor

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

2011-05-04 Thread Scott Chamberlain
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, Jonatha

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

2011-05-04 Thread Jonathan Daily
If you read the help documentation, lattice is not really compatible with standard graphics. library("lattice") ?lattice 2011/5/4 Lucia Cañas : > 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 "p

[R] combine lattice plot and standard R plot

2011-05-04 Thread Lucia Cañas
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