Re: [R] segment between points on different plots

2009-04-16 Thread Greg Snow
The help page for the cnvrt.coords function in the TeachingDemos package shows some examples of drawing lines/rectangles between multiple graphs created using par(mfrow=c(... This function and the examples were written before the grconvertX and grconvertY functions, so use the example for the g

Re: [R] segment between points on different plots

2009-04-16 Thread baptiste auguie
Here's an example adapted from ?grid.arrows pushViewport(viewport(layout=grid.layout(1, 2))) pushViewport(viewport(layout.pos.col=1, layout.pos.row=1)) grid.rect(gp=gpar(col="grey")) grid.points() grid.points(x=0.5, y=0.5, gp=gpar(col="red")) popViewport() pushViewport(vie

Re: [R] segment between points on different plots

2009-04-16 Thread baptiste auguie
Hi, You should give a minimal reproducible example so that we know more precisely what you want to do (what's a "multigraph"?). Perhaps you can get inspiration from Paul Murrell's R graphics book, in particular Figure 5.22, http://www.stat.auckland.ac.nz/~paul/RGraphics/customgrid-lattice