new_label: Add Label Annotation

Description Usage Arguments Value

View source: R/new-label.R

Description

Functions to add a text label.

Usage

1
2
3
4
5
6
7
8
9
new_label(
  label,
  width = 0.2,
  height = 0.2,
  dir = "right",
  element_height = NULL,
  element_width = NULL,
  ...
)

Arguments

label

a character vector.

width

a positive numeric, indicating the width of a row annotation.

height

a positive numeric, indicating the height of a column annotation.

dir

on of "right", "left", "top" or "bottom", indicating the position of the annotation plot.

element_height

the panel height of each label.

element_width

the panel width of each label.

...

other parameters for grid::textGrob().

Value

a modified gg object.


Hy4m/newplot documentation built on Dec. 17, 2021, 11:24 p.m.