stat_timelabel: Corresponding function to prepare layer object for...

Description Usage Value Examples

Description

This is not necessary but prepared for complete functionality. It refers to geom_timelabel() and StatTimelabel class for plotting purpose. As it refers geom_timelable(), it means the function can be used 'independent' of geom_timeline().

Usage

1
2
3
stat_timelabel(mapping = NULL, data = NULL, geom = "timelabel",
  position = "identity", na.rm = FALSE, n_max = NA, show.legend = NA,
  inherit.aes = TRUE, ...)

Value

layer object for plotting purpose

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
ggplot(data = selected) +
  aes(x=DATE, y=COUNTRY,
      colour = TOTAL_DEATHS,
      size = EQ_PRIMARY,
      label=LOCATION_NAME, byCol=EQ_PRIMARY,
      xmin = xmin1, xmax = xmax1) +
      geom_timeline() +
  stat_timelabel(n_max=5)+
  theme_timeline() +
  scale_size_continuous(name = "Richter scale value") + #change legend name
  scale_colour_continuous(name = "# Deaths")
## End(Not run)

wingtham/NOAA documentation built on May 24, 2019, 3:51 p.m.