geom_THaxis: ggTHaxis

View source: R/geom_th_axis.R

geom_THaxisR Documentation

ggTHaxis

Description

ggTHaxis

Usage

geom_THaxis(
  mapping = NULL,
  th_data = NULL,
  geom = Geom,
  axis_ticks_length = NULL,
  axis_location = NULL,
  axis_direction = "h",
  draw = NULL,
  ...,
  na.rm = FALSE,
  nudge_x = 0,
  nudge_y = 0,
  name = NULL
)

Arguments

mapping

Set of aesthetic mappings created by aes, which depends on geom.

th_data

a data frame. It should include one column named as rowLab to store the row name of the heatmap when side is left or right; otherwise, it should include one column named as colLab to store the column name of the heatmap when side is top or bottom.

geom

GeomSegment or GeomText.

axis_ticks_length

a number to decide the lenght of ticks.

axis_location

"right" or "left" when axis_direction = "v"; "top" or "bottom" when axis_direction = "h"

axis_direction

either "h" for horizontal or "v" for vertical

draw

"border", "axis" or "axislabel"

...

Other arguments passed on to geom_text or geom_segment for geom = GeomSegment or geom = GeomText.

na.rm

If FALSE, the default, missing values are removed with a warning. If TRUE, missing values are silently removed.

nudge_x, nudge_y

Horizontal and vertical adjustment to nudge labels or lines. Cannot be jointly specified with position.

name

a name to select heatmap

Value

ggTHaxis (a geom layer)

Author(s)

Ruizhu Huang


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