Skip to contents

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.

Usage

themed_label(label, theme = NULL, element = "text", x = 0.01, hjust = 0, ...)

Arguments

label

A string of text for label.

theme

A ggplot theme; if NULL (the default), will get current theme with ggplot2::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().

Value

A ggplot object.

Examples

#TODO