An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090222/d9d64061/attachment-0001.pl>
line joining graphs
5 messages · rajesh j, Eik Vettorazzi, Ben Bolker +2 more
hi, you can use par(xpd=TRUE) and draw the joining line in every sub graph - don't know if there is another way with simple graphs eg: par(mfcol=c(1,2)) plot(1,1,xlim=c(0,5),main="1st") op<-par(xpd=TRUE) abline(h=1) plot(1,1,xlim=c(0,5),main="2nd") abline(h=1) hth. rajesh j schrieb:
hi, I need to draw a line joining graphs,but abline stops within a graph.What do i do to cover portions between two graphs
rajesh j <akshay.rajesh <at> gmail.com> writes:
I need to draw a line joining graphs,but abline stops within a graph.What do i do to cover portions between two graphs
try par(xpd=NA) ?segments may be useful too
Paul Murrell's book provides such an example using Grid (figure 5.22). A short example is available on his website: http://www.stat.auckland.ac.nz/~paul/grid/doc/moveline.pdf It may be possible to use this in conjunction with gridBase. baptiste
On 22 Feb 2009, at 20:43, Eik Vettorazzi wrote:
hi, you can use par(xpd=TRUE) and draw the joining line in every sub graph - don't know if there is another way with simple graphs eg: par(mfcol=c(1,2)) plot(1,1,xlim=c(0,5),main="1st") op<-par(xpd=TRUE) abline(h=1) plot(1,1,xlim=c(0,5),main="2nd") abline(h=1) hth. rajesh j schrieb:
hi, I need to draw a line joining graphs,but abline stops within a graph.What do i do to cover portions between two graphs
______________________________________________ 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.
_____________________________ Baptiste Augui? School of Physics University of Exeter Stocker Road, Exeter, Devon, EX4 4QL, UK Phone: +44 1392 264187 http://newton.ex.ac.uk/research/emag
You may want to look at the examples for the cnvrt.coords function in the TeachingDemos package for some ideas on how to draw lines between plots. However, it is better to use the grconvertX and grconvertY functions rather than the cnvrt.coords function (it will be deprecated one of these days). Hope this helps,
Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111 > -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of rajesh j > Sent: Sunday, February 22, 2009 6:09 AM > To: r-help at r-project.org > Subject: [R] line joining graphs > > hi, > I need to draw a line joining graphs,but abline stops within a > graph.What do > i do to cover portions between two graphs > > -- > Rajesh.J > > [[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.