Learn R Programming

EMA (version 1.4.7)

plotBiplot: Sample and variable representation on a same graph for PCA

Description

Sample and variable representation on a same graph for Principal Component Analysis (PCA)

Usage

plotBiplot(acp, ...)

Arguments

acp

result from PCA or do.pca function

...

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

Value

Plot of samples and variables on a same graph

See Also

runPCA,PCA

Examples

Run this code
# NOT RUN {
data(marty)

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

## Biplot of PCA object
plotBiplot(pca)
# }

Run the code above in your browser using DataLab