dot-ggAnnotate: Annotate a ggplot2 Plot with Text

.ggAnnotateR Documentation

Annotate a ggplot2 Plot with Text

Description

Internal function. General purpose function to add text to a ggplot2 plot. Uses textGrob so arguments like hjust can be passed via ...

Usage

.ggAnnotate(text, x, y, ...)

Arguments

text

Character. The text to be plotted, but certain values are intercepted for special handling.

x

Numeric. The x coordinate for the text to be plotted, in NPC.

y

Numeric. The y coordinate for the text to be plotted, in NPC.

...

Additional arguments to be passed to textGrob.

Value

A custom annotation grob, ready to be added to an existing plot.

Author(s)

Bryan A. Hanson (DePauw University), Tejasvi Gupta.


ChemoSpecUtils documentation built on May 31, 2023, 5:56 p.m.