geom_pointedline: Creates a pointed lined on ggplot

Usage Examples

View source: R/geompointedline.R

Usage

1
2
3
geom_pointedline(mapping = NULL, data = NULL, stat = "identity",
  position = "identity", show.legend = NA, inherit.aes = TRUE,
  size = 1.5, ...)

Examples

1
2
3
4
5
6
7
8
9
ggplot() +
 geom_pointedline(
   data = filter(LifeExpectancy, Country.Code == "WLD") %>% drop_na(),
   aes(x = Year, y = Expectancy, color = Country.Code)
 )  +
   geom_pointedline(
     data = filter(LifeExpectancy, Country.Code == "USA")  %>% drop_na(),
     aes(x = Year, y = Expectancy, color = Country.Code)
   )

neemtreeparrot/tidbitr documentation built on May 23, 2019, 1:31 p.m.