as_cor_network: Coerce to a cor_network object

Description Usage Arguments Value Author(s) Examples

View source: R/as-cor-network.R

Description

Functions to coerce a object to cor_network if possible.

Usage

 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, ...)

Arguments

x

any R object.

...

extra params passing to cor_network.

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.

Value

a cor_network object.

Author(s)

Houyun Huang, Lei Zhou, Jian Chen, Taiyun Wei

Examples

1
2

houyunhuang/ggcor documentation built on July 22, 2020, 8:31 p.m.