add_event | R Documentation |
add_event()
adds a vertical line and a label denoting an event to
a ggplot
object.
add_event( gg_obj, date, lab, lab_y, hjust = 0, vjust = 0, angle = -90, face = c("bold", "italic", "bold.italic", "plain"), line = c("dashed", "solid", "blank", "dotted"), color = "grey30", ... )
gg_obj |
A |
date |
The date of the event |
lab |
The event label |
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 |
color |
Line and text color |
... |
Additional arguments to pass to
|
The modified ggplot
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.