Thank you very much!
On Tue, Sep 3, 2013 at 3:18 PM, Bjørn-Helge Mevik <b.h.me...@usit.uio.no>wrote: > Euna Jeong <eaje...@gmail.com> writes: > > > R> plot(gas1, ncomp=2, asp = 1, line = TRUE) > > > > This shows only the cross-validated predictions. > > If you add the argument which = c("train", "validation") (see > ?predplot.mvr), you will get both. However, you will get them in > separate panels in the plot. > > If you wish to have them in the same panel, you will have to add the > points yourself. This should work: > > plot(gas1, ncomp=2, asp = 1, line = TRUE) > points(predict(gas1, ncomp = 2) ~ gasoline$octane, col = "red") > > -- > Regards, > Bjørn-Helge Mevik > > ______________________________________________ > R-help@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. > [[alternative HTML version deleted]]
______________________________________________ R-help@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.