make_discrete_map: Produce Oakland map of discrete variable

Description Usage Arguments Value

View source: R/make_discrete_map.R

Description

This function takes in category (gentrification, income, or ethnoracial) and produces a census tract map of Oakland representing a discrete variable.

Usage

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)
)

Arguments

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

Value

Map of discrete variable: gentrification, income, or ethnoracial category.


Changing-Cities-Research-Lab/oakViz documentation built on May 13, 2021, 7:19 p.m.