[R] PCA - blank loadings

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Mar 18 14:47:33 CET 2010



On 17.03.2010 00:16, Xanthe Walker wrote:
> Hi,
>
> I have successfully completed a PCA and printed the loadings, however,
> numerous values are blank. I know that this means the values are just very
> small but not equal to zero.
>
> Is there a way to print out the loadings, including the very small values, I
> need them for graphing purposes.


See ?loadings and find that

  print(loadings(pca_object), cutoff=0)

shoudl print everything.

Although, if you want to use the loadings for generating graphics, you 
should work with the output directly, since thge information in the 
loadings object is much more precise than its pinted representation. Too 
see a bit more, type, e.g.:

l <- loadings(pca_object)
l[]


Uwe Ligges



> Thanks,
> Xan
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list