geom_th_border: add the border line

View source: R/geom_th_border.R

geom_th_borderR Documentation

add the border line

Description

add a line to separate heatmaps

Usage

geom_th_border(
  name,
  side = "right",
  gap = 0.5,
  extend_y = c(0, 0),
  extend_x = c(0, 0),
  th_geom = "text",
  ...,
  params_label = list(color = "black", size = 4, nudge_x = 0, nudge_y = 0, label = "")
)

Arguments

name

the name of the heatmap to add row or column labels.

side

a character value selected from left, right, top or bottom. left and right to add the vertical line; top or bottom to add the horizontal line.

gap

the gap between the border line and the heatmap

extend_y

a numeric vector with two elements. For example, c(1, 2) would extend the bottom end of the line by 1 and the top end by 2.

extend_x

a numeric vector with two elements. For example, c(1, 2) would extend the left end of the line by 1 and the right end by 2.

th_geom

"label" (for geom_label) or "text" (for geom_text)

...

Other arguments passed on to layer(). These are often aesthetics, used to set an aesthetic to a fixed value, like colour = "red" or size = 3. They may also be parameters to the paired geom/stat.

params_label

a list of arguments to passed to geom_text (or geom_label) to customize the label. See geom_label.

Value

geom layers

Author(s)

Ruizhu Huang


fionarhuang/TreeHeatmap documentation built on Feb. 1, 2024, 7:30 a.m.