View source: R/draw_horizontal_reference_line.R
draw_horizontal_reference_line | R Documentation |
Draws a horizontal reference line or multiple reference lines to plots
draw_horizontal_reference_line(
reference_line,
color = "grey",
linetype = "dashed",
size = 0.7
)
reference_line |
input y coordinate of reference line(s). for multiple reference lines, concatenate individual values into a vector (required) |
color |
change reference line color. options are "grey", "blue" and "red". by default, it is set to "grey" (optional) |
linetype |
change line type. identical to linetype ggplot2 aesthetic. by default, it is set to "dashed" (optional) |
size |
change line thickness. identical to size ggplot2 aesthetic. by default, it is set to 0.7 (optional) |
A horizontal reference line plotted on top of a 'ggplot' object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.