Description Usage Arguments Value Author(s) Examples
View source: R/as-cor-network.R
Functions to coerce a object to cor_network if possible.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | as_cor_network(x, ...)
## S3 method for class 'cor_tbl'
as_cor_network(
x,
directed = FALSE,
simplify = TRUE,
weight = NULL,
r.thres = 0.6,
r.abs = TRUE,
p.thres = 0.05,
...
)
## S3 method for class 'mantel_tbl'
as_cor_network(x, directed = FALSE, ...)
## S3 method for class 'pro_tbl'
as_cor_network(x, directed = FALSE, ...)
## S3 method for class 'correlate'
as_cor_network(x, directed = FALSE, ...)
## S3 method for class 'rcorr'
as_cor_network(x, directed = FALSE, ...)
## S3 method for class 'corr.test'
as_cor_network(x, directed = FALSE, ...)
## S3 method for class 'igraph'
as_cor_network(x, ...)
## S3 method for class 'tbl_graph'
as_cor_network(x, ...)
## Default S3 method:
as_cor_network(x, ...)
|
x |
any |
... |
extra params passing to |
directed |
logical value, whether or not to create a directed graph. |
simplify |
logical value (defaults to TRUE) indicating whether to delete nodes without edge connections. |
weight |
NULL (default) or name of column in edges which will be renamed to "weight". |
r.thres |
a numeric value. |
r.abs |
logical value (defaults to TRUE). |
p.thres |
a numeric value. |
a cor_network object.
Houyun Huang, Lei Zhou, Jian Chen, Taiyun Wei
1 2 | ll <- correlate(mtcars)
as_cor_network(ll)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.