add_today: Add a Marker for Today's Date to a Plot

View source: R/plot.R

add_todayR Documentation

Add a Marker for Today's Date to a Plot

Description

add_today() adds a dotted line and a "Today" label to a ggplot object.

Usage

add_today(
  gg_obj,
  lab_y,
  hjust = 0,
  vjust = 0,
  angle = 0,
  face = c("plain", "bold", "italic", "bold.italic"),
  line = c("dotted", "dashed", "solid", "blank")
)

Arguments

gg_obj

A ggplot object

lab_y

The y coordinate of the event label

hjust

The horizontal alignment of the event label; defaults to 0

vjust

The vertical alignment of the event label; defaults to 0

angle

The angle of the event label; defaults to 0

face

The font face of the label text

line

The type of vertical line to use

Value

The modified ggplot object


jesse-smith/coviData documentation built on Jan. 14, 2023, 11:08 a.m.