cor_net | R Documentation |
Perform network analysis for correlation coefficient.
cor_net(
mat,
use = "pairwise.complete.obs",
method = "pearson",
thres = 0.6,
fig_title = "Correlation network"
)
mat |
a data matrix for correlation analysis |
use , method |
parameters of |
thres |
correlation coefficient threshold for network analysis. Only
keep those with coefficient larger than |
fig_title |
a character string for figure title. |
a list of ggplot2
plots.
res <- cor_net(mtcars)
names(res)
res$p1 # or res$p2, res$p3, res$p4
## Not run:
## see https://ggplot2-book.org/arranging-plots.html
library(patchwork)
res$p1 + res$p2 + res$p3 + res$p4
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.