plotVariance.ldecomp: Explained variance plot

View source: R/ldecomp.R

plotVariance.ldecompR Documentation

Explained variance plot

Description

Shows a plot with explained variance vs. number of components.

Usage

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

Arguments

obj

object of ldecomp class.

type

type of the plot

variance

string, which variance to make the plot for ("expvar", "cumexpvar")

labels

what to show as labels for plot objects.

xticks

vector with ticks for x-axis

show.plot

logical, shall plot be created or just plot series object is needed

ylab

label for y-axis

...

most of graphical parameters from mdaplot function can be used.


mdatools documentation built on Sept. 11, 2024, 7:59 p.m.