plot_group_kernel | R Documentation |
Heatmap plot showing the group-group correlations inferred by the model per factor
plot_group_kernel(object, factors = "all", groups = "all", ...)
object |
a trained |
factors |
character vector with the factors names, or numeric vector indicating the indices of the factors to use |
groups |
character vector with the groups names, or numeric vector with the indices of the groups of samples to use, or "all" to use samples from all groups. |
... |
additional parameters that can be passed to |
The heatmap gives insight into the clustering of the patterns that factors display along the covariate in each group. A correlation of 1 indicates that the module caputred by a factor shows identical patterns across groups, a correlation of zero that it shows distinct patterns, a negative correlation that the patterns go in opposite directions.
Returns a ggplot,gg
object containing the heatmaps
# Using an existing trained model on simulated data
file <- system.file("extdata", "MEFISTO_model.hdf5", package = "MOFA2")
model <- load_model(file)
plot_group_kernel(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.