sr_rmd_plot_choropleth_tracts_race: Choropleth map of census tracts and racial brakdowns

sr_rmd_plot_choropleth_tracts_raceR Documentation

Choropleth map of census tracts and racial brakdowns

Description

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.

Usage

sr_rmd_plot_choropleth_tracts_race(.data, race, ...)

Arguments

.data

Data set of racial totals and percentages by census tract. Data set created with sr_rmd_census_tracts_race. This does not contain shapefile data.

race

String representing racial group we want to plot. This will come from the variable column in .data.

...

Parameters for sr_plot_choropleth_tracts.

Value

A leaflet choropleth map of census tracts, with the percentage of people in a given census tract belonging to a given racial identity.


shanejorr/schoolreportr documentation built on Aug. 7, 2023, 12:25 p.m.