Description Usage Arguments Details Value Examples
Function to plot the correlation matrix between the latent factors.
1 | plotFactorCor(object, method = "pearson", ...)
|
object |
a trained |
method |
a character indicating the type of correlation coefficient to be computed: pearson (default), kendall, or spearman. |
... |
arguments passed to |
This method plots the correlation matrix between the latent factors.
The model encourages the factors to be uncorrelated, so this function usually
yields a diagonal correlation matrix.
However, it is not a hard constraint such as in Principal Component Analysis and
correlations between factors can occur, particularly with large number factors.
Generally, correlated factors are redundant and should be avoided, as they make interpretation harder.
Therefore, if you have too many correlated factors we suggest you try reducing the number of factors.
Returns a symmetric matrix with the correlation coefficient between every pair of factors.
1 2 3 4 5 6 7 8 9 | # Example on the CLL data
filepath <- system.file("extdata", "CLL_model.hdf5", package = "MOFAdata")
MOFA_CLL <- loadModel(filepath)
plotFactorCor(MOFA_CLL)
# Example on the scMT data
filepath <- system.file("extdata", "scMT_model.hdf5", package = "MOFAdata")
MOFA_scMT <- loadModel(filepath)
plotFactorCor(MOFA_scMT)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.