get_timeline_label: get_timeline_label

Description Usage Arguments Value Examples

View source: R/earthquake.R

Description

A wrapper function to help generate timeline (with labels) visualisations easier.

Usage

1
get_timeline_label(data_raw, clist = "ALL", xmin, xmax, n_max = 5)

Arguments

data_raw

A data table containing NOAA Earthquake data

clist

Character/Vector of grouping names eg "USA" from COUNTRY column.

xmin

POSIXct date - minimum date for timeline

xmax

POSIXct date - maximum date for timeline

n_max

Integer value to control number of labels per group to show

Value

A ggplot2 graphical object displying timeline earthquate data with labels.

Examples

1
2
3
4
## Not run: 
get_timeline_label(eq_data_raw, c("USA","CHINA"),"2010-01-01","2016-01-01", n_max = 5)

## End(Not run)

Moonglum8/rEarthquake documentation built on July 17, 2020, 5:10 p.m.