Re: [R] Plot Principal component analysis

2008-02-28 Thread SNN
Thanks for your help. I downloaded the scatterplot3d package. plot3d(pr$x, col = c("red", "blue")[c(rep(1, 100), rep(2, 15))], pch=20) where pr$x is the object of the PCA. this works but the graph does not look good. the other option that I tried is scatterplot3d(pr$x, type="p", highlight.3d=

Re: [R] Plot Principal component analysis

2008-02-28 Thread David Winsemius
SNN <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > Thanks for your help, > Can R plot the data in 3 dimention, with different colors for each > group ? > for exmple I would like to have the plot with respect to PC1, PC2 > and PC3. > See if these answer your desires:

Re: [R] Plot Principal component analysis

2008-02-27 Thread SNN
Thanks for your help, Can R plot the data in 3 dimention, with different colors for each group ? for exmple I would like to have the plot with respect to PC1, PC2 and PC3. Thanks, SNN wrote: > > Hi, > > I have matrix of 300,000*115 (snps*individual). I ran the PCA on the > covariance matrix

Re: [R] Plot Principal component analysis

2008-02-27 Thread Thibaut Jombart
Jim Lemon wrote: >SNN wrote: > > >>Hi, >> >>I have matrix of 300,000*115 (snps*individual). I ran the PCA on the >>covariance matrix which has a dimention oof 115*115. I have the first 100 >>individuals from group A and the rest of 15 individuals from group B. I need >>to plot the data in two an

Re: [R] Plot Principal component analysis

2008-02-27 Thread Jim Lemon
SNN wrote: > Hi, > > I have matrix of 300,000*115 (snps*individual). I ran the PCA on the > covariance matrix which has a dimention oof 115*115. I have the first 100 > individuals from group A and the rest of 15 individuals from group B. I need > to plot the data in two and 3 dimentions with respe

Re: [R] Plot Principal component analysis

2008-02-26 Thread Christos Hatzis
SNN'; r-help@r-project.org > Subject: Re: [R] Plot Principal component analysis > > If your samples are in the specified order (i.e. first 100 > from group A and remaining from group B) you can try the > following in your plot call: > > plot(..., col=c("red"

Re: [R] Plot Principal component analysis

2008-02-26 Thread Christos Hatzis
OTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of SNN > Sent: Tuesday, February 26, 2008 4:11 PM > To: r-help@r-project.org > Subject: [R] Plot Principal component analysis > > > Hi, > > I have matrix of 300,000*115 (snps*individual). I ran the PCA > on the covariance

[R] Plot Principal component analysis

2008-02-26 Thread SNN
Hi, I have matrix of 300,000*115 (snps*individual). I ran the PCA on the covariance matrix which has a dimention oof 115*115. I have the first 100 individuals from group A and the rest of 15 individuals from group B. I need to plot the data in two and 3 dimentions with respect to PC1 and PC2 and