Re: [R] segment between points on different plots

2009-04-16 Thread Greg Snow
ilto:r-help-boun...@r- > project.org] On Behalf Of rajesh j > Sent: Thursday, April 16, 2009 4:58 AM > To: r-help@r-project.org > Subject: [R] segment between points on different plots > > Hi, > > I need to draw a line segment between two points on different plots in >

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

[R] segment between points on different plots

2009-04-16 Thread rajesh j
Hi, I need to draw a line segment between two points on different plots in the same multigraph.I've tried looking at the zoominplot function in plotrix but havent understood much.any help is appreciated ~Aks [[alternative HTML version deleted]] __