View source: R/flash_methods.R
plot.flash | R Documentation |
Given a flash
object, produces up to two figures: one showing
the proportion of variance explained per factor/loadings pair, and one that
plots posterior means for either factors or loadings (depending on the
argument to parameter pm_which
).
## S3 method for class 'flash'
plot(
x,
include_scree = TRUE,
include_pm = TRUE,
order_by_pve = TRUE,
kset = NULL,
pm_which = c("factors", "loadings"),
pm_subset = NULL,
pm_groups = NULL,
pm_colors = NULL,
...
)
x |
An object inheriting from class |
include_scree |
Whether to include a figure ("scree plot") showing the proportion of variance explained by each factor/loadings pair. |
include_pm |
Whether to include a figure showing the posterior means for
either loadings |
order_by_pve |
If |
kset |
A vector of integers specifying the factor/loadings pairs to be
plotted. If |
pm_which |
Whether to plot loadings |
pm_subset |
A vector of row indices |
pm_groups |
A vector specifying the group to which each row of the data
|
pm_colors |
A vector specifying a color for each bar (if
|
... |
Additional parameters are ignored. |
If arguments include_scree
and include_pm
specify that
only one figure be produced, then plot.flash()
returns a
ggplot2
object. If both figures are to be produced, then
plot.flash()
prints both plots but does not return a value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.