Description Usage Arguments Value Note References Examples
The Earthquakes will be mapped centered with their latitude and longitude "epicenter". The epicenter is annotated based on an annot_col which the user can specify. In addition, if the user specifies "popup_text" then a call to eq_create_label generates the appropriate text for the popup.
1 |
eq_clean |
The clean earthquake data in a tbl_df object. |
annot_col |
Column in the tbl_df object to be used for annotation. |
This function returns an interactive map.
If an invalid column name is provided, the function provides a warning and uses the LOCATION_NAME column as the annotation column.
http://rstudio.github.io/leaflet/
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.