View source: R/tab_dimensionreduction.R
plotPCAVar | R Documentation |
The function plotPCAVar
plots the explained variance (in
y-axis against the principal components for the measured and permuted values.
plotPCAVar(var_x, var_perm = NULL)
var_x |
|
var_perm |
|
The argument var_perm
is optional and visualization of permuted values
can be omitted by setting var_perm = NULL
.
gg
object from ggplot
Thomas Naake
x <- matrix(seq_len(100), ncol = 10)
pca <- dimensionReduction(x = x, params = list(center = TRUE, scale = TRUE),
type = "PCA")[[2]]
var_x <- explVar(d = pca, type = "PCA")
var_perm <- permuteExplVar(x = x, n = 100, center = TRUE, scale = TRUE)
plotPCAVar(var_x = var_x, var_perm = var_perm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.