Internal function. General purpose function to add text to a ggplot2 plot. Uses
textGrob
so arguments like hjust
can be passed via ...
.ggAnnotate(text, x, y, ...)
A custom annotation grob, ready to be added to an existing plot.
Character. The text to be plotted, but certain values are intercepted for special handling.
Numeric. The x coordinate for the text to be plotted, in NPC.
Numeric. The y coordinate for the text to be plotted, in NPC.
Additional arguments to be passed to textGrob
.
Bryan A. Hanson (DePauw University), Tejasvi Gupta.