tag: Add a tag to a plot

View source: R/ggplot.R

tagR Documentation

Add a tag to a plot

Description

Add a tag inside the plot region.

Usage

tag(
  tag,
  position = c("topleft", "topright", "bottomleft", "bottomright"),
  margin,
  fontface = 2,
  geom = "text",
  ...
)

Arguments

tag

Tag to display.

position

Position of the tag. One of c("topleft", "topright", "bottomleft", "bottomright").

margin

Numeric vector indicating the space between the tag element and border of the plot region. If two values are passed, the first value defines the horizontal margin while the second value defines the vertical margin.

fontface

Font face of the tag element.

geom

Name of geom to use for annotation.

...

Other arguments passed on to annotate().


arnaudgallou/toolkit documentation built on Nov. 25, 2022, 5:42 p.m.