Learn R Programming

ggdistribute (version 1.0.3)

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

Description

Write text to one of four corners of a plot

Usage

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

Value

ggplot layer

Details

If multiple panels, will write to all panels.

Examples

Run this code
# NOT RUN {
posterior_plot() + annotate_corner("Hi.", "bottomright")
# }

Run the code above in your browser using DataLab