base_map | R Documentation |
Plot census tract boundaries and demographic data on a leaflet map
base_map()
add_people(lmap, year_id, people_data)
add_tracts(lmap, year_id, tract_data)
lmap |
A |
year_id |
A four-digit year |
people_data |
A dataframe containing locations to place dots representing people, output of create_dots function |
tract_data |
A dataframe containing shapefiles to plot census tract boundaries for each year, output of get_data_wide function |
## Not run:
add_people(base_map(), 2000, create_dots(filter_data_wide(get_data_wide(), "New York", "Madison")))
## End(Not run)
## Not run:
add_tracts(base_map(), 1960, filter_data_wide(get_data_wide(), "New York", "Madison"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.