Re: [R] Sos! "Lines" doesn't add plots to an existing plot...

From: Dieter Menne <dieter.menne_at_menne-biomed.de>
Date: Tue 31 Jan 2006 - 18:27:57 EST

Michael <comtech.usa <at> gmail.com> writes:

> > plot(testError, col="red")
> > lines(testVar, col="black")
>
> Only one plot (the red one) appear on the Window, the black line did not
> appear...what's wrong?

We can only guess, because you did not supply the data. But I am quite sure, that the lines-data are outside the range set by plot, probable because it were "errors", i.e. differences to the original data. Try

plot(testVar, col="red")
lines(testError, col="black")

or use xlim as parameter of plot

Dieter



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jan 31 18:35:57 2006

This archive was generated by hypermail 2.1.8 : Tue 31 Jan 2006 - 21:05:03 EST