sp_ggplot_add_vline_hline | R Documentation |
Add hline or vline for ggplot2 object
sp_ggplot_add_vline_hline(
p,
custom_vline_x_position = NULL,
custom_vline_anno = NULL,
custom_vline_anno_y_pos = NULL,
custom_hline_y_position = NULL,
custom_hline_anno = NULL,
custom_hline_anno_x_pos = NULL,
linetype = "dotted",
size = 0.5,
...
)
p |
A ggplot2 object |
custom_vline_x_position |
A vector of coordinates for vertical lines. |
custom_vline_anno |
Annotation text for each vertical line. |
custom_hline_y_position |
A vector of coordinates for horizontal lines. |
custom_hline_anno |
Annotation text for each horizontal line. |
... |
Extra parameters given to |
A ggplot2 object
## Not run:
sp_ggplot_add_vline_hline(p)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.