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]]
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 graphstry par(xpd=NA) ?segments may be useful too
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.