annotate_label_grey: Annotating plots with a grey background

View source: R/ggplot.R

annotate_label_greyR Documentation

Annotating plots with a grey background

Description

Annotating plots with a grey background

Usage

annotate_label_grey(
  label,
  x,
  y,
  size = 4,
  fill = "#EBEBEB99",
  hjust = 0,
  vjust = 0,
  label.size = 0,
  ...
)

Arguments

label

Text to write on the plot.

x, y

x and y positions.

size, fill, hjust, vjust, label.size

Plotting aesthetics that this function handles. They can be overridden.

...

Other parameters to pass onto ggplot2::annotate().

Value

An annotation layer for a ggplot2 plot.


tjmahr/tjmisc documentation built on Feb. 8, 2023, 12:21 p.m.