This function labels gggplot facets with letters. Modified from egg::tag_facet()

label_facets(
  p,
  open = "(",
  close = ")",
  tag_pool = c(letters, paste0(letters, letters)),
  x = -Inf,
  y = Inf,
  hjust = -0.5,
  vjust = 1.5,
  fontface = 2,
  family = "",
  ...
)

Arguments

p

A faceted ggplot.

open

Opening character

close

Closing character

tag_pool

Character vector of labels

x

x position within panel

y

y position within panel

hjust

hjust

vjust

vjust

fontface

fontface

family

font family

...

passed to ggplot2::geom_text

Value

A ggplot