plotVariable: Variable representation for Principal Component Analysis

Description Usage Arguments Value Author(s) See Also Examples

View source: R/pca.R

Description

Variable representation for Principal Component Analysis (PCA)

Usage

1
2
plotVariable(acp, axes = c(1, 2), new.plot = FALSE, lab, lim.cos2.var =
0, palette="rainbow", ...)

Arguments

acp

result from PCA or do.pca function

axes

axes for variable representation, by default 1 and 2

new.plot

if TRUE, a new graphical device is created, by default = FALSE

lab

variable label

palette

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

lim.cos2.var

keep variables with cos2 >= lim.cos2.var

...

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

Value

Variable representation on axes axes[1] and axes[2]

If PCA is normed, the correlation circle is plotted colored by lab

Author(s)

Nicolas Servant, Eleonore Gravier, Pierre Gestraud, Cecile Laurent, Caroline Paccard, Anne Biton, Jonas Mandel, Bernard Asselain, Emmanuel Barillot, Philippe Hupe

See Also

runPCA,PCA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
data(marty)

## PCA on sample on 100 genes
## In practice see genes.selection
##mvgenes<-genes.selection(marty, thres.num=100)

pca <- runPCA(t(marty[1:100,]), verbose = FALSE, plotSample = FALSE,
    plotInertia = FALSE)
\dontrun{
## Variable plot of PCA object
\dontrun{
plotVariable(pca)
}
}

## End(Not run)

EMA documentation built on March 26, 2020, 8:40 p.m.