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.
1 2 3 4 5 6 7 8 |
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.