annotate_pilot: A wrapper for the annotate function in ggplot2

View source: R/wrappers.R

annotate_pilotR Documentation

A wrapper for the annotate function in ggplot2

Description

This function is identical to annotate in ggplot2. The only difference is that the default arguments implement the pilot chart style.

Usage

annotate_pilot(
  color = "#404040",
  family = getOption("pilot.annotate_family"),
  fontface = "plain",
  size = 5,
  ...
)

Arguments

color

An RGB hex string indicating the color to use for the text. The default is "#404040".

family

A string indicating the font family to use for the text. The default depends on the operating system.

fontface

A string indicating the font face to use for the text. The default is "plain".

size

An integer indicating the size of the text. The default is 5.

...

Any other arguments passed to annotate.


olihawkins/pilot documentation built on July 21, 2022, 9:48 a.m.