Re: [R] Question about the prediction plot in pls package

2013-09-03 Thread Euna Jeong
Thank you very much! On Tue, Sep 3, 2013 at 3:18 PM, Bjørn-Helge Mevik wrote: > Euna Jeong 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

Re: [R] Question about the prediction plot in pls package

2013-09-02 Thread Bjørn-Helge Mevik
Euna Jeong 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

[R] Question about the prediction plot in pls package

2013-09-02 Thread Euna Jeong
Hi, I'd like to draw the trained predictions and the cross-validated predictions in the same plot to compare two predictions. In page 3, in the pls Package paper, R> plot(gas1, ncomp=2, asp = 1, line = TRUE) This shows only the cross-validated predictions. Could you tell me how to do? Thank y