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

Dieter Menne dieter.menne at menne-biomed.de
Tue Jan 31 08:27:57 CET 2006

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


More information about the R-help mailing list