eq_create_label: Create label text for eq_map()

Description Usage Arguments See Also Examples

View source: R/eq_create_label.R

Description

Create a label text that can be used with eq_map by combining LOCATION, MAG and TOTAL_DEATHS into a html-string.

Usage

1

Arguments

data

(tbl_df) noaa dataset cleaned with eq_clean_data

See Also

eq_map

Examples

1
2
3
4
5
6
7
8
## Not run: 
system.file("extdata", "noaa_earthquakes.tsv", package = "noaa") %>%
  eq_read_data %>%
  eq_clean_data %>%
  mutate(label_text = eq_create_label(.)) %>%
  eq_map(annot_col = "label_text")

## End(Not run)

philippB-on-git/noaa documentation built on Dec. 22, 2021, 7:49 a.m.