lineMarks | R Documentation |
to add horizontal or vertical lines to a list of ggplot objects
lineMarks(
graphs,
vlines = NA,
hlines = NA,
vlinesAttributes = linesMarkDefaults(),
hlinesAttributes = linesMarkDefaults()
)
graphs |
a ggplot object or a list of ggplot-objects to which the lines have to be added |
vlines |
a numeric vector defining where the vertical lines are to be placed |
hlines |
a numeric vector defining where the vertical lines are to be placed |
vlinesAttributes |
list which defines the type of line to be used for vlines parameter |
hlinesAttributes |
list which defines the type of line to be used for hlines parameter |
a list of ggplot objects
due to the graphs parameter you can use: list(ggplot objects)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.