Description Usage Arguments Details Value Examples
View source: R/compare_models.R
Different MOFA
objects are compared in terms of correlation between their factors.
1 | compare_factors(models, ...)
|
models |
a list with |
... |
extra arguments passed to pheatmap |
If assessing model robustness across trials, the output should look like a block diagonal matrix, suggesting that all factors are robustly detected in all model instances.
Plots a heatmap of the Pearson correlation between latent factors across all input models.
1 2 3 4 5 6 7 | # Using an existing trained model on simulated data
file <- system.file("extdata", "model.hdf5", package = "MOFA2")
model1 <- load_model(file)
model2 <- load_model(file)
# Compare factors between models
compare_factors(list(model1,model2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.