plot3dSample {EMA}R Documentation

Sample representation in 3 dimensions for PCA

Description

Sample representation in 3 dimensions for Principal Component Analysis

Usage

plot3dSample(acp, lab = NULL, palette="rainbow", ...)

Arguments

acp

result from PCA or do.pca function

lab

colored by lab

palette

character, name of color palette, by default = "rainbow"

...

Arguments to be passed to methods, such as graphical parameters (see 'par').

Value

Sample representation in 3 dimensions

Author(s)

EMA group

See Also

runPCA,PCA

Examples

## Not run: 
data(marty)

## PCA on sample
example.subset <- marty[1:100,1:100]
pca <- runPCA(t(example.subset), plotSample = FALSE, plotInertia = FALSE, verbose = FALSE)

## Sample plot in 3 dimensions colored by tumour type
plot3dSample(pca, lab = marty.type.cl)

## End(Not run)

[Package EMA version 1.3.2 Index]