Re: [R] Help with plotting plsr loadings

2011-06-10 Thread Bjørn-Helge Mevik
Amit Patel writes: >>plot(BHPLS1, "loadings", comps = 1:2, legendpos = "topleft", labels = >>"numbers", >>xlab = "nm") > > Error in loadingplot.default(x, ...) : > Could not convert variable names to numbers. > > > str(BHPLS1_Loadings) > loadings [1:8892, 1:60] -0.00717 0.00414 0.02611 0.0

[R] Help with plotting plsr loadings

2011-06-08 Thread Amit Patel
Hi I am attempting to do a loadings plot from a plsr object. I have managed to do this using the gasoline data that comes with the pls package. However when I conduct this on my dataset i get the following error message. >plot(BHPLS1, "loadings", comps = 1:2, legendpos = "topleft", labels =