Skip to content

Overlaid plots - lines

3 messages · PIKAL Petr, GSt

GSt
#
Dear all,

I have a question concerning two overlaid (scatter)plots: 
Has anyone an idea how I can join the first point of the first plot with the
first point of the second plot, the second point of the first plot with the
second point of the second plot,... and so on. Is it possible? :-/

Using lines(x,y) I can only join the points of one plot...

Thank you in advance,
GSt
#
Hi

r-help-bounces at r-project.org napsal dne 04.02.2009 11:59:44:
the
the
Try segments or arrows

x<-rnorm(10)
y<-rnorm(10)
plot(1:10,x)
points(1:10,y, col=2)
segments(1:10,y,1:10,x)

Regards
Petr
http://www.nabble.com/Overlaid-plots---lines-
http://www.R-project.org/posting-guide.html