anno_link: Link annotation

Description Usage Arguments Value Note Author(s)

View source: R/annotation.R

Description

Link annotation

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
anno_link(
  data,
  mapping = NULL,
  width = 0.3,
  pos = "right",
  label.size = 3.88,
  label.colour = "black",
  label.family = "",
  label.fontface = 1,
  nudge_x = 0.1,
  expand = NULL,
  start.var = NULL,
  start.name = NULL,
  end.var = NULL,
  ...
)

Arguments

data

a data frame.

mapping

aesthetic mappings parameters.

width

width of link plot.

pos

position of link plot.

label.size, label.colour, label.family, label.fontface

parameters for label.

nudge_x

horizonal justification of label.

expand

expansion of x axis.

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 will be converted.

start.name

character vector.

...

extra parameters passing to layer function.

Value

a ggplot layer.

Note

Loading the ggraph package first makes this function even more functional.

Author(s)

Houyun Huang, Lei Zhou, Jian Chen, Taiyun Wei


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