Description Usage Arguments Value Author(s) References Examples
This function returns different correlation plots (correlogram and network plots) and a table with all pairwise correlations in the data.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
data |
A MSnSet object. First |
method |
Character indicating which correlation coefficient has to be computed. Options are "pearson" (default), "kendall" and "spearman". |
shape |
Character ingicating shape of correlogram. Options are "square" (default) and "circle". |
type |
Character indicating type of correlogram. Options are "full" (default), "lower" or "upper". |
show_corr |
Logical indicating if correlation coefficient for each pair of features should be plotted in correlogram or not (default = FALSE). Only recomended for a low number of features. |
low |
Colour for low end of the gradient in correlogram. |
outline |
Colour for the outline of the gradient in correlogram. |
high |
Colour for high end of the gradient in correlogram. |
label_size |
Numeric indicating label size in correlogram. |
corr_type |
Type of network to be made with correlation matrix. Options are "cor" (for global correlations) and "glasso" (for gaussian graphical model). Default is "cor". See |
coeff |
Numeric indicatin correlation coefficient. Edges with absolute weight below this value will be removed from the network. If "corr_type" is set to "glasso", this parameter indicates the regularization parameter for lasso (rho = 0 means no regularization). See |
A list with the results.
Pol Castellano-Escuder
Jerome Friedman, Trevor Hastie and Rob Tibshirani (2019). glasso: Graphical Lasso: Estimation of Gaussian Graphical Models. R package version 1.11. https://CRAN.R-project.org/package=glasso
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.