flash_plot_heatmap | R Documentation |
Creates a heatmap of posterior means for factors f_{jk}
or loadings
\ell_{ik}
. Values are normalized so that the maximum absolute value
for each factor f_{\cdot k}
or set of loadings \ell_{\cdot k}
is equal to 1 (see ldf.flash
).
flash_plot_heatmap(
fl,
order_by_pve = FALSE,
kset = NULL,
pm_which = c("factors", "loadings"),
pm_subset = NULL,
pm_groups = NULL,
pm_colors = NULL,
gap = 1,
...
)
fl |
An object inheriting from class |
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 character vector of length 1, 2, or 3 defining the
diverging color gradient (low-mid-high) to be used by the heatmap. The
midpoint is set at zero. If one or two colors are supplied, then the
"mid" color will be set to white. If one color is supplied, then the "low"
and "high" colors (used for, respectively, negative and positive posterior
means) will be the same. If two are supplied, then the "low" color should
be provided first, followed by the "high" color. If all three are supplied,
then the "low" color should be provided first, followed by the "mid" color,
followed by the "high" color provided. The default color gradient is
|
gap |
The horizontal spacing between groups. Ignored if |
... |
Additional parameters to be passed to
|
By default, a 1-d embedding is used to arrange the rows i
or columns
j
in a "smart" manner. This behavior can be overridden via argument
loadings_order
, which is passed to function
structure_plot
.
A ggplot
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.