> -----Original Message-----
> christopher stratton
> Sent: 14 August 2011 22:22
> Subject: [R] PCA Using prcomp()
>
>  From the results 
> generated by prcomp(), is there a way to print a matrix 
> showing the contributions of the original variables to each 
> PC? 

Sounds like you're looking for the variable loadings matrix, stored in the 
prcomp object as 'rotation' according to the help page.

Extending the example from the help page:

usar.pca <-      prcomp(USArrests, scale = TRUE)
 
usar.pca$rotation

S Ellison
*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}

______________________________________________
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.

Reply via email to