Hi
r-help-bounces at r-project.org napsal dne 04.02.2009 11:59:44:
>
> 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...
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
>
> Thank you in advance,
> GSt
> --
> View this message in context:
http://www.nabble.com/Overlaid-plots---lines-> tp21828330p21828330.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.