eq_legend_timeline: Transform NOAA feature into human readable character

Description Usage Arguments Value Examples

View source: R/geom_NOAA_timeline.R

Description

For DEATHS feature returns "Total nb of deaths", for MAG feature returns "Richter scale magnitude" and for any other return the feature name in title case.

Usage

1

Arguments

quo

quosure corresponding to mapping of a variable

Value

Character

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
 mapping <- ggplot2::aes(x=DATE,fill=MAG,size=DEATHS)
 eq_legend_timeline(mapping$x)
 eq_legend_timeline(mapping$fill)
 "Total nb of deaths"
 eq_legend_timeline(mapping$size)
 "Richter scale magnitude"

## End(Not run)

BreizhZut/NOAAsignifEarthQuakes documentation built on Nov. 10, 2019, 3:45 p.m.