From: Dirk Eddelbuettel (edd@debian.org)
Date: Wed 25 Dec 2002 - 04:04:07 EST
Message-id: <20021224170407.GA11782@sonny.eddelbuettel.com>
On Tue, Dec 24, 2002 at 11:44:02AM -0500, Zhongming Yang wrote:
> The following commands only draw two lines (blue and red ones) rather
> than three lines.
> plot(inData[[1]], inData[[2]], type='l', col="blue", );
> lines(inData[[1]], mod.data$prepeak, col="green");
> lines(inData[[1]], baseline, col="red");
>
> But when I can draw three lines in different diagrams by using
> par(fraw=c(3,1));
> plot(inData[[1]], inData[[2]], type='l', col="blue", );
> plot(inData[[1]], mod.data$prepeak, type='l', col="green");
> plot(inData[[1]], baseline, type='l', col="red");
>
> What's wrong with the first three commands?
>From the wild guess department: mod.data$prepeak is outside the range of
the plot determined by inData[[1]], inData[[2]]. Try adding
, ylim=range(inData[[2]], mod.data$prepeak)
Dirk
-- Prediction is very difficult, especially about the future. -- Niels Bohr______________________________________________ R-help@stat.math.ethz.ch mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help
This archive was generated by hypermail 2.1.3 : Tue 01 Jun 2004 - 09:31:59 EST