cormat_to_edgelist | R Documentation |
Transform a correlation matrix to an edge list
cormat_to_edgelist(matrix)
matrix |
Symmetrical correlation matrix. |
A 2-column data frame containing node 1, node 2 and edge weight.
data(filt.se)
cor_mat <- cor(t(SummarizedExperiment::assay(filt.se)))
edgelist <- cormat_to_edgelist(cor_mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.