This function takes an input data.frame and writes out a html file containing a Mapbox map and all javascript dependencies.
1 |
df |
Input data.frame. Must contain fields called latitude and longitude |
htmlfile |
Destination file name. Default is |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.