Description Usage Arguments Value Examples
This function allows you to visualize an input point data file (as a CSV) on top of a basemap. You may additionally select a field to use for popups on the points, so the map becomes interactive. NOTE: the fields for latitude and longitude (to plot the points) must be labeled as "lat" and "lon" in your input CSV file (without the quotation marks)
1 | displayData(dataset, field)
|
dataset |
Path to CSV file used as input |
field |
Optional field that will enable informational popups upon hover (note that if no field is desired as input, an empty set of quotations must be specified (e.g., " ")) |
A basic map showing the points based on the coordinates from the CSV file.
1 | displayData(dataset = "../data/food.csv", field = STORE_NAME)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.