areaMarks | R Documentation |
to add closed (eg colored) areas to a list of ggplot objects
areaMarks(graphs, areas = areaDefinition(), areaAttributes = areaAttributes())
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 |
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.