annotate_corner: Write text to one of four corners of a plot

Description Usage Arguments Details Value Examples

Description

Write text to one of four corners of a plot

Usage

1
annotate_corner(text, pos = "tl", geom = c("text", "label"), ...)

Arguments

text

character string

pos

character of "tl", "tr", "bl", "br" to indicate position (you may also use the full names, "bottomleft", etc...)

geom

"text" or "label" geoms

...

additional options passed to ggplot2::geom_label

Details

If multiple panels, will write to all panels.

Value

ggplot layer

Examples

1
posterior_plot() + annotate_corner("Hi.", "bottomright")

ggdistribute documentation built on May 2, 2019, 10:25 a.m.