qlink: Draw link-curves

View source: R/qlink.R

qlinkR Documentation

Draw link-curves

Description

This function can be used to draw a special network, which nodes should be matched width margin plot.

Usage

qlink(
  graph,
  mapping = NULL,
  ...,
  geom = "path",
  widths = NULL,
  heights = NULL,
  guides = "collect",
  nsteps = 100,
  hratio = 0.33
)

extract_nodes()

Arguments

graph

a igraph, tbl_graph, or other can be converted to igraph object.

mapping

default list of aesthetic mappings to use for plot.

...

margin plot, should be named with "r", "l", "t" or "b".

geom

no used.

widths

width of margin plot.

heights

height of margin plot.

guides

a string specifying how guides should be treated in the layout.

nsteps

integer, the value determines the smoothness of the curve.

hratio

range 0 to 1, height ratio of half-circle link.

Value

a ggplot object.

Author(s)

Hou Yun


Hy4m/linkET documentation built on June 30, 2023, 7:39 p.m.