plotVariance.pca: Explained variance plot for PCA model

View source: R/pca.R

plotVariance.pcaR Documentation

Explained variance plot for PCA model

Description

Shows a plot with explained variance or cumulative explained variance for components.

Usage

## S3 method for class 'pca'
plotVariance(
  obj,
  type = "b",
  labels = "values",
  variance = "expvar",
  xticks = seq_len(obj$ncomp),
  res = obj$res,
  ylab = "Explained variance, %",
  ...
)

Arguments

obj

a PCA model (object of class pca)

type

type of the plot ("b", "l", "h")

labels

what to use as labels (if show.labels = TRUE)

variance

which variance to show

xticks

vector with ticks for x-axis

res

list with result objects to show the variance for

ylab

label for y-axis

...

other plot parameters (see mdaplotg for details)

Details

See examples in help for pca function.


svkucheryavski/mdatools documentation built on Aug. 25, 2023, 12:27 p.m.