wrap_annotate: Add Margin Annotation

View source: R/wrap-annotate.R

wrap_annotateR Documentation

Add Margin Annotation

Description

This function is a wrapper of aplot, and can be used to insert annotation.

Usage

wrap_annotate(
  plot,
  ...,
  width = NULL,
  height = NULL,
  k = 2,
  colour = NULL,
  border = NA,
  color = NULL
)

Arguments

plot

a ggplot object.

...

annotation elements.

width, height

width/height of each annotation plot.

k

an integer scalar with the desired number of groups.

border, colour, color

fill and border colour of the hclust bar.

Author(s)

Hou Yun

References

Yu G (2022). aplot: Decorate a 'ggplot' with Associated Information. R package version 0.1.6, https://CRAN.R-project.org/package=aplot.


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