Re: [R] Drawing a 3-D plot for PCA?

2006-12-22 Thread Gavin Simpson
On Thu, 2006-12-21 at 16:28 -0600, Frank Duan wrote:
 Hi All,
 
 Can anyone point me a hint (package) how to draw a 3D plot using the first 3
 components from PCA?
 
 Thanks a lot,
 
 FD

See ?ordiplot3d and ?ordirgl in package vegan. rda() in that package can
be used to perform PCA, which can then be drawn in 3D using the rgl
package or the scatterplot3d package, the former allowing dynamic
rotation and zooming of the ordination configuration.

HTH

G

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Gavin Simpson [t] +44 (0)20 7679 0522
ECRC  [f] +44 (0)20 7679 0565
UCL Department of Geography
Pearson Building  [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street
London, UK[w] http://www.ucl.ac.uk/~ucfagls/
WC1E 6BT  [w] http://www.freshwaters.org.uk/
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

__
R-help@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.


[R] Drawing a 3-D plot for PCA?

2006-12-21 Thread Frank Duan
Hi All,

Can anyone point me a hint (package) how to draw a 3D plot using the first 3
components from PCA?

Thanks a lot,

FD

[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] Drawing a 3-D plot for PCA?

2006-12-21 Thread hadley wickham
 Can anyone point me a hint (package) how to draw a 3D plot using the first 3

You might want to have a look at ggobi (http://www.ggobi.org) and
rggobi (http://www.ggobi.org/rggobi) which will allow you to look at
any number of principle coordinates.  (And don't forgot to look at the
high ones - interesting structure is often revealed there)

Hadley

__
R-help@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.