plotVariance.pca | R Documentation |
Shows a plot with explained variance or cumulative explained variance for components.
## S3 method for class 'pca'
plotVariance(
obj,
type = "b",
labels = "values",
variance = "expvar",
xticks = seq_len(obj$ncomp),
res = obj$res,
ylab = "Explained variance, %",
...
)
obj |
a PCA model (object of class |
type |
type of the plot ("b", "l", "h") |
labels |
what to use as labels (if |
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 |
See examples in help for pca
function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.