[R] biplot and prcomp

Hector L. Ayala ayalahec at msu.edu
Fri May 9 14:27:45 CEST 2003


R users
   As was mentioned before, the princomp() function in R 1.7.0 will 
complain if the data set has more columns than rows.  The alternative 
functions to generate a PCA analysis that will not complain about such type 
of data set are prcomp() or pca() (multiv library).  Although the results 
of both of them are almost identical, the outputs are not compatible with 
the biplot() function from mva.  Does anybody know if there is an 
alternative way to generate the biplot??  I can generate a two dimensional 
graph with the sample scores by plotting the values from the object where 
the results are, but how do I plot the arrows that represent the loadings???

thanks


Hector



********************************************
Héctor L. Ayala-del-Río, Ph.D.
Center for Microbial Ecology
Michigan State University
540 Plant & Soil Sciences Building
East Lansing, MI 48824
Tel: 517-353-9021
Fax: 517-353-2917
ayalahec at msu.edu




More information about the R-help mailing list