Re: [R] Biplot

From: Sarah Goslee <>
Date: Sun, 13 May 2007 08:57:46 -0400


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

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 13 May 2007 - 13:03:44 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 13 May 2007 - 13:31:31 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.