| add_today | R Documentation |
add_today() adds a dotted line and a "Today" label to a ggplot object.
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")
)
gg_obj |
A |
lab_y |
The y coordinate of the event label |
hjust |
The horizontal alignment of the event label; defaults to |
vjust |
The vertical alignment of the event label; defaults to |
angle |
The angle of the event label; defaults to |
face |
The font face of the label text |
line |
The type of vertical line to use |
The modified ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.