geom_timeline_label: geom_timeline_label

Description Usage Arguments Value Aesthetics Examples

View source: R/jggGeom.R

Description

A ggplot2 graphical function that adds labels to earthquakes visualised. There is an option to select the "n" largest earthquakes by magnitude to which to apply the labels. Best used with 'eq_location_clean'.

Usage

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

Arguments

mapping

mapping

data

data

stat

stat

position

position

na.rm

na.rm

show.legend

show.legend

inherit.aes

inherit.aes

...

...

Value

A ggplot2 graphical object for labelling plots generated with geom_timeline.

Aesthetics

geom_timeline_label understands the following aesthetics:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(ggplot2)
    ggplot(df) +
    geom_timeline_label(aes(x = DATE,
                            xmin = as.Date("2000-01-01", format="%Y-%m-%d"),
                            xmax = as.Date("2017-01-01", format="%Y-%m-%d"),
                            size=RITCHER,
                            n_max=5))

## End(Not run)

Grandez/earthquake documentation built on Nov. 18, 2017, 6:51 a.m.