hello, I've two questions today. 1) I'm trying to do a scree diagram, I did a Google for a specific command I could used to do so. All I could find is a screeplot. Are they the same command? 2) what command can I used to present a PC scores, eigenvectors of the PC scores, and component correlations? thanks! -- View this message in context: http://r.789695.n4.nabble.com/Scree-diagram-tp2122453p2122453.html Sent from the R help mailing list archive at Nabble.com.
Hi Phillip, I've never heard of a scree _diagram_, I'm not even sure what that is. To get started with principal components analysis in R, I suggest the psych package. The package vignettes are quite detailed, I suggest starting there. Best, Ista On Sun, May 2, 2010 at 12:06 AM, Philip Wong <tombfighter at mysinamail.com> wrote:> > hello, > I've two questions today. > 1) I'm trying to do a scree diagram, I did a Google for a specific command I > could used to do so. ?All I could find is a screeplot. ?Are they the same > command? > > 2) what command can I used to present a PC scores, eigenvectors of the PC > scores, and component correlations? > > thanks! > -- > View this message in context: http://r.789695.n4.nabble.com/Scree-diagram-tp2122453p2122453.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. >-- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org
1) I believe you wanted a scree plot which shows the percentage of variance explained (y-axis) versus the principal components (x-axis). To do that, all you needs a simple plot(x,y) function where x = pc and y = variance. It is called a scree plot because the plot looks like a scree on the side of the mountain. 2) you can find the details of the components using names(x) where x= the output from your pca command Muhammad On 05/02/2010 01:06 AM, Philip Wong wrote:> hello, > I've two questions today. > 1) I'm trying to do a scree diagram, I did a Google for a specific command I > could used to do so. All I could find is a screeplot. Are they the same > command? > > 2) what command can I used to present a PC scores, eigenvectors of the PC > scores, and component correlations? > > thanks! >