powered by
Uses a normalized coordinate system to add text anywhere on the current plot.
label_plot(labels, x, y, g = list(fontsize = 14, fontface = "bold"), ...)
character vector of labels to use
horz positions of items in labels
labels
vert positions of items in labels
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
# NOT RUN { 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') # }
Run the code above in your browser using DataLab