annotate_commonslib: A wrapper for the annotate function in ggplot2

View source: R/wrappers.R

annotate_commonslibR 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 Commons Library chart style.

Usage

annotate_commonslib(
  color = "#404040",
  family = "Open Sans",
  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 is "Open Sans".

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.


houseofcommonslibrary/clcharts documentation built on June 10, 2025, 9:16 p.m.