Description Usage Arguments Value
View source: R/make_discrete_map.R
This function takes in category (gentrification, income, or ethnoracial) and produces a census tract map of Oakland representing a discrete variable.
1 2 3 4 5 6 7 8 | make_discrete_map(
shp_tracts,
discrete_cat = "gent",
coord = F,
save = F,
savename = "plot.png",
caption = paste0(frb_caption, ses_caption, period_caption)
)
|
shp_tracts |
"US_tract_2010.shp" loaded object |
discrete_cat |
Discrete category to plot: gent, income, ethnoracial |
coord |
T if plotting coordinate values (lat, lon). Default is F. |
save |
T if user would like to return plot object and save file, F (default) to just return object. |
savename |
File name of map for saving. |
caption |
Figure caption |
Map of discrete variable: gentrification, income, or ethnoracial category.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.