A Reproducible Framework for Visualizing Demographic Distance Profiles in US Metropolitan AreasShow full item record
A Reproducible Framework for Visualizing Demographic Distance Profiles in US Metropolitan Areas
Walker, Kyle E.
Distance profiles have long been used in urban demography to explore how demographic characteristics of metropolitan areas vary by distance from their urban cores. Distance profile visualizations graphically illustrate these relationships and are useful in exploratory demographic data analysis of urban areas. The purpose of this article is to demonstrate how to build distance profile visualizations reproducibly within R, a free and open-source programming language and data analysis environment. The approach to distance profile visualization in this article involves the graphical display of a smoothed relationship between the location quotient of a demographic group for a metropolitan Census tract and the distance between the tract centroid and its respective urban core. Data acquisition, analysis, and visualization are all handled in R. The tidycensus, sf, and ggplot2 R packages are featured in this framework. Distance profile visualizations for educational attainment are used as illustrative examples, and reveal how the geography of metropolitan educational attainment varies both over time and across different types of metropolitan areas.