geom_couple: Link Layer

View source: R/geom-couple.R

anno_linkR Documentation

Link Layer

Description

Function to draw mantel test plot on a correlation matrix heatmap.

Usage

anno_link(...)

geom_couple(
  data,
  mapping = NULL,
  drop = TRUE,
  label.size = 3.88,
  label.colour = "black",
  label.family = "",
  label.fontface = 1,
  nudge_x = 0.5,
  offset_x = NULL,
  offset_y = NULL,
  ...
)

nice_curvature(curvature, by = "to")

Arguments

...

extra parameters passing to layer function.

data

a data frame.

mapping

aesthetic mappings parameters.

drop

logical. If TRUE (default), the unused levels will be droped.

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

parameters for label.

nudge_x

horizonal justification of label.

offset_x, offset_y

NULL or named-list, add a little offset to the node points.

curvature

a numeric value giving the amount of curvature.

by

one of "from" or "to". Compute the best curvature based on start or end points.

Value

a ggplot layer.

Note

'anno_link()' has been deprecated in 0.0.4, please use 'geom_couple()' instead.

Author(s)

Hou Yun


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