[BioC] plotting 3d image of pca analysis
Frederico Arnoldi
fredgca at hotmail.com
Thu Jun 3 15:29:56 CEST 2010
Rohit,
> but this package is huge ... and m new to R so if i can get some straight commands it
> will be really helpful ...
I never used "ord", but using the traditional "prcomp" and scatterplot3d, you can do it like this:
library(scatterplot3d)
data <- read.table("your_data_file"......)
pca <- prcomp(data) # if you are loading a microarray, matrix you should use prcomp(t(data))
scatterplot3d(pca$x[,1], pca$x[,2], pca$x[,3], main = "PCA 3D plot")
Good luck,
Frederico Arnoldi
_________________________________________________________________
NINGUÉM PRECISA SABER O QUE VOCÊ ESTÁ COMPRANDO. LEIA MAIS SOBRE ESSE ASSUNTO AQUI.
rivately.aspx?tabid=1&catid=1&WT.mc_id=1590
More information about the Bioconductor
mailing list