This is a wrapper around cowplot::draw_label()
that creates a ggplot
-based label that inherits formatting from a given theme element. It's more or less been superceded by ggplot
's new plot.title.position
theme argument.
Arguments
- label
A string of text for label.
- theme
A ggplot theme; if
NULL
(the default), will get current theme withggplot2::theme_get()
.- element
Name of a theme element; defaults to base text.
- x
x-position; defaults to 0.01
- hjust
Horizontal alignment; defaults 0
- ...
Any other arguments to pass to
cowplot::draw_label()
.