Description Usage Arguments Value See Also Examples
Uses a normalized coordinate system to add text anywhere on the current plot.
1 | label_plot(labels, x, y, g = list(fontsize = 14, fontface = "bold"), ...)
|
labels |
character vector of labels to use |
x |
horz positions of items in |
y |
vert positions of items in |
g |
list of options passed to grid::gpar |
... |
optional args passed to grid::grid.text |
NULL. prints to current graphics device.
grid::grid.text, grid::gpar
1 2 3 4 5 | example_plot()
label_plot(c('a label', 'another one'), c(.1, .9), c(.95, .1))
# use extra options from grid::grid.text
label_plot('last one', 0.5, 0.5, just='center')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.