Description Usage Arguments Value Examples
This function creates a leaflet map plot showing the epicenter of each earthquake in a dataset.
1 | eq_map(dataset, annot_col)
|
dataset |
A dataset generated by eq_clean_data(). |
annot_col |
A string giving the name of a column in dataset. The contents of this will be used to fill in the pop-up window when an earthquake is selected. |
This function creates a leaflet map with circles representing the epicenters of the earthquakes. The radius of each circle is determined by the field EQ_PRIMARY.
1 2 3 4 | eq_data <- eq_clean_data("NOAA_earthquakes.txt")
eq_data <- subset(eq_data, Country == "Mexico" & YEAR >= 2000)
eq_map(dataset=eq_data, annot_col = "DATE")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.