Skip to contents

This function will add text to a trend_calendar() plot, which can either be the day of the month (like an ordinary calendar) or the pollutant concentration.

Usage

annotate_calendar_text(
  type = "date",
  colour = "black",
  na_colour = "grey70",
  size = 3,
  digits = 0,
  ...
)

Arguments

type

What type of annotation should be added? Can be one of "date" (the day of the month) or "value" (the pollutant concentration).

colour

The colour for the annotation text.

na_colour

The colour for the annotation text for days outside of a given month. Used when type = "date".

size

The size of the annotation text.

digits

The number of decimal places used for the annotation text when type = "value".

...

Other arguments passed to ggplot2::geom_text().

See also

Other calendarplot annotation functions: annotate_calendar_wd()