link_tbl: Transform data base on different layout

Description Usage Arguments Value Author(s) Examples

View source: R/link-tbl.R

Description

These layout functions are not layout in the network diagram, it just converts the original data into a form that makes it easy to draw a curve graph.

Usage

1
2
3
4
5
6
7
8
link_tbl(
  data,
  cor_tbl,
  start.var = NULL,
  start.name = NULL,
  end.var = NULL,
  pos = "right"
)

Arguments

data

a data frame.

cor_tbl

a col_tbl object.

start.var, end.var

character to specify which variable is the starting points and which is the ending points. if the variable is not character, it is forced to be converted.

start.name

names of start point.

pos

position of link.

Value

a data frame.

Author(s)

Houyun Huang, Lei Zhou, Jian Chen, Taiyun Wei

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
data(varespec, package = "vegan")
data(varechem, package = "vegan")
m <- mantel_test(varespec, varechem, spec.select = list(1:10, 11:44))
corr <- fortify_cor(varechem)
link_tbl(m, corr) ## full
link_tbl(m, get_upper_data(corr)) ## upper
link_tbl(m, get_lower_data(corr)) ## lower

## End(Not run)

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