[R] Pca loading plot lables

Bjørn-Helge Mevik bhx2 at mevik.net
Mon Apr 25 16:20:04 CEST 2005


One way is to use the loadingplot() function in the package `pls':

molprop.pc <- princomp(whatever)

library(pls)
loadingplot(molprop.pc, scatter = TRUE, labels = "names")

(If you want comp 2 vs. comp 1:
loadingplot(molprop.pc, comps = 2:1, scatter = TRUE, labels = "names")


-- 
Bjørn-Helge Mevik




More information about the R-help mailing list