draw_key_timeline: function to identify legend

Description Usage Examples

Description

This is function that is used in ggproto to make custom legend type in new geom_*. @inheritParams ggplot2::draw_key_polygon

Usage

1
draw_key_timline(data, params, size)

Examples

1
2
3
4
5
6
7
8
## Not run: ggplot2::ggproto("GeomTimeline_label", Geom,
     required_aes = c("x"),
     optional_aes=c("size", "n_max", "caption"),
     non_missing_aes = c("fill", "colour", "y"),
     default_aes = aes(shape = 19, colour = "black", fill = "black", size = 0.1,
                       linetype = 1, alpha = 0.25, fontsize = 1, y=0.5),
     draw_key = draw_key_timline
## End(Not run)

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