areaMarks: to add closed (eg colored) areas to a list of ggplot objects

View source: R/graphicR.R

areaMarksR Documentation

to add closed (eg colored) areas to a list of ggplot objects

Description

to add closed (eg colored) areas to a list of ggplot objects

Usage

areaMarks(graphs, areas = areaDefinition(), areaAttributes = areaAttributes())

Arguments

graphs

list of ggplot-objects to which the areas have to be added Note: MUST be a list

areas

list (!) of data.frames of x and y columns defining the area to be drawn in the ggplot objects. Example: areaBlockExample <- data.frame(x = c(5,10,10,5), y = c(10,10,20,20))

areaAttributes

list which defines the type of area to be used for the areas

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.