annotation_custom_text: A function that extends ggplot2::annotation_custom by...

Description Usage Arguments

Description

A function that extends ggplot2::annotation_custom by automatically picking a textGrob, and allowing the user to pass the graphical parameters of the grob into the function call itself.

Usage

1
2
3
4
5
6
7
8
annotation_custom_text(
  label,
  xmin = -Inf,
  xmax = Inf,
  ymin = -Inf,
  ymax = Inf,
  ...
)

Arguments

label

a string.

xmin

x location (in data coordinates) giving horizontal location of raster

xmax

x location (in data coordinates) giving horizontal location of raster

ymin

y location (in data coordinates) giving vertical location of raster

ymax

y location (in data coordinates) giving vertical location of raster

...

optional, passed to grid::gpar.


graiffgarcia/ggggR documentation built on Jan. 23, 2022, 12:51 p.m.