PlotPcs {pcaMethods}R Documentation

Plot many side by side scores XOR loadings plots

Description

A function that can be used to visualise many PCs plotted against each other

Usage

plotPcs(object, pc=1:object@nPcs, scoresLoadings=c(TRUE, FALSE),...)

Arguments

object a pcaRes object
pc which pcs to plot
scoresLoadings If scores XOR loadings should be plotted
... Further arguments to slplot

Details

Uses par to provide side-by-side plots so it does not work with Sweave. Note that this function only plots scores or loadings but not both in the same plot.

Value

None, used for side effect.

Author(s)

Henning Redestig

See Also

prcomp, pca, princomp, slplot

Examples

data(iris)
pcIr <- pca(iris[,1:4], nPcs=3, scale="UV", method="svd")
plotPcs(pcIr)

[Package pcaMethods version 1.2.3 Index]