Re: [R] line joining graphs

2009-02-23 Thread baptiste auguie
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@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

__
R-help@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.


Re: [R] line joining graphs

2009-02-23 Thread Greg Snow
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.s...@imail.org
801.408.8111


 -Original Message-
 From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
 project.org] On Behalf Of rajesh j
 Sent: Sunday, February 22, 2009 6:09 AM
 To: r-help@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@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.

__
R-help@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.


Re: [R] line joining graphs

2009-02-22 Thread Eik Vettorazzi

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@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.


Re: [R] line joining graphs

2009-02-22 Thread Ben Bolker
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

__
R-help@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.