[R] Biplot

Sarah Goslee sarah.goslee at gmail.com
Sun May 13 14:57:46 CEST 2007


If you check the help for princomp, you'll see that it returns all
sorts of information in the form of a list. The most convenient
way is to save your analysis
xresults <- princomp(x, cor=TRUE)
then you can look at the scores, plot them yourself, anything
else you want
xscores <- xresults$scores

and so on.


On 5/13/07, Soare Marcian-Alin <soarealin at gmail.com> wrote:
> Hello everybody,
> How could I extract the components of of a PCA to plot it into a biplot?
> I want to make pairwise biplots of the first three main components:
> biplot(princomp(x, cor=TRUE))
> biplot(princomp(x[,c(1,2)], cor=TRUE))
> biplot(princomp(x[,c(1,3)], cor=TRUE))
> biplot(princomp(x[,c(2,3)], cor=TRUE))
> Is this the only way, how I could plot them?
> I thought, that it could be possible to extract them of the full PCA ..
> KR,
> Alin
Sarah Goslee

More information about the R-help mailing list