Re: [R] Biplot

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

Hi,

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.

Sarah

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
http://www.functionaldiversity.org

______________________________________________
R-help_at_stat.math.ethz.ch 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.
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.