sr_rmd_plot_choropleth_tracts_race | R Documentation |
Helper function that plots a choropleth map of the percentage of people of a given
race living in each census tract within a district. Uses sr_plot_choropleth_tracts
to create the plot, but creates and adds the tool tip and filters the data
for the racial category that we want to plot.
sr_rmd_plot_choropleth_tracts_race(.data, race, ...)
.data |
Data set of racial totals and percentages by census tract.
Data set created with |
race |
String representing racial group we want to plot. This will come from
the |
... |
Parameters for |
A leaflet choropleth map of census tracts, with the percentage of people in a given census tract belonging to a given racial identity.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.