Skip to content
Prev 106142 / 398506 Next

two connected graphs

--- Robin Hankin <r.hankin at noc.soton.ac.uk> wrote:

            
?par and read up on mfrow for the two graphs.


Here is something that may help for the lines
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/1926.html

The code below will  work but I had to figure out the
arrow coordinates by trial and error and there must be
a better way.

aa <- c(1:10)
bb <- c(1:6)
op <- par(mfrow = c(2,1), oma=c(1,0,3,0), las=1, xpd =
NA )
plot(aa)
plot(bb)
arrows( 3,3, 4.9, 21.5, length=0)