lineMarks: to add horizontal or vertical lines to a list of ggplot...

View source: R/graphicR.R

lineMarksR Documentation

to add horizontal or vertical lines to a list of ggplot objects

Description

to add horizontal or vertical lines to a list of ggplot objects

Usage

lineMarks(
  graphs,
  vlines = NA,
  hlines = NA,
  vlinesAttributes = linesMarkDefaults(),
  hlinesAttributes = linesMarkDefaults()
)

Arguments

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

Value

a list of ggplot objects

Note

due to the graphs parameter you can use: list(ggplot objects)


BenBruyneel/BBPersonalR documentation built on Aug. 23, 2024, 8:28 p.m.