eq_create_label: Creating the pop-up annotation

Description Usage Arguments Examples

Description

Function eq_create_label() takes the dataset as an argument and creates an HTML label that can be used as the annotation text in the leaflet map.

Usage

1

Arguments

data

The inputed data frame

Examples

1
2
3
4
5
6
7
8
## Not run: 
eq_country_filter(data, c("INDIA"),
xmin = as.Date("1850-01-01"),
xmax = as.Date("1920-01-01"))%>%
dplyr::mutate(popup_text = eq_create_label(.)) %>%
eq_map(annot_col = "popup_text")

## End(Not run)

maianhdang/noaa.visualise documentation built on May 22, 2019, 12:23 p.m.