geom_timeline: geom_timeline function definition

Description Usage Arguments Details Examples

View source: R/noaa.R

Description

Using new geom class we can plot the timelines

Usage

1
2
3
geom_timeline(mapping = NULL, data = NULL, stat = "identity",
  position = "identity", na.rm = FALSE, show.legend = NA,
  inherit.aes = TRUE, ...)

Arguments

mapping

Set of aesthetic mappings created by aes() or aes_()

data

The data to be displayed in this layer

stat

The statistical transformation to use on the data for this layer, as a string

position

Position adjustment, either as a string, or the result of a call to a position adjustment function

na.rm

Parameter to be passed to stat and geom

show.legend

(logical) Should this layer be included in the legends? NA includes if any aes are mapped

inherit.aes

If FALSE, overrides the default aesthetics, rather than combining with them

...

Other possible arguments

Details

Ne ne ne

Examples

1
2
3
4
5
6
7
8
## Not run: 
 ggplot(noaa_df, aes(x = DATE, y = COUNTRY,
        color = as.numeric(TOTAL_DEATHS),
        size = as.numeric(EQ_PRIMARY),
        label = LOCATION_NAME)) +
 geom_timeline()

## End(Not run)

bsleczko/Rproj documentation built on May 8, 2019, 8:57 p.m.