geom_timeline: geom_timeline

Description Usage Arguments Details Examples

View source: R/geom_timeline.R

Description

This function generates a timeline plot with years as y axis and individual earthquake dates as points on the x axis.

Usage

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

Arguments

mapping

Set of aesthetic mappings created by <e2><80><98>aes<e2><80><99>. Can be inherited from upper levels of the plot.

data

The data to be displayed in this layer. Can be NULL, data.frame or function

stat

The statistical transformation to use on the data for this layer

position

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

show.legend

logical. Should this layer be included in the legends?

na.rm

If <e2><80><98>FALSE<e2><80><99>, the default, missing values are removed with a warning. If <e2><80><98>TRUE<e2><80><99>, missing values are silently removed.

inherit.aes

If <e2><80><98>FALSE<e2><80><99>, overrides the default aesthetics, rather than combining with them.

...

other arguments passed on to <e2><80><98>layer<e2><80><99>.

Details

: aes parameters act similar to 'geom_point'

Examples

1
2
3
4
5
6
7
8
## Not run: 
ggplot(quakesFiltered,aes(x = DATE, y = COUNTRY,
        xmin = as.Date("2000-1-1","%Y-%m-%d"),
        xmax = as.Date("2015-12-31","%Y-%m-%d"),
        )) +
 geom_timeline(aes(size = EQ_PRIMARY))

## End(Not run)

tcoopermont/eqtools documentation built on May 30, 2019, 7:21 a.m.