GeomTimeline: function to build ggproto for geom

Description Usage Format Examples

Description

Here will be the usage of two functions, required to create custom geom: ggplot2:ggproto and geom_* (in this case geom_hurricane) in order to create new geom_timeline, which shows magnitude and year of hurricane occured

Usage

1

Format

An object of class GeomTimeline (inherits from Geom, ggproto) of length 7.

Examples

1
2
3
4
5
6
## Not run:   ggplot2::layer(
   geom = GeomTimeline, mapping = mapping,
   data = data, stat = stat, position = position,
   show.legend = show.legend, inherit.aes = inherit.aes,
   params = list(na.rm = na.rm, ...))
## End(Not run)

Yailama/Capstone-project documentation built on May 25, 2019, 2:23 p.m.