README updated 2026-05-11
This repo hosts the R code to collect and prepare data and to create the equity dashboard for regional indicators for the Charlottesville region.
Charlottesville Regional Data Dashboard
Data workflow for collecting and preparing data for dashboard. This RMD file runs R scripts found in /scripts and saves data to specific dashboard year /data folder.
Script files are run from dashboard-update-workflow.RMD. Each script file contains a TOC of included measures. Scripts included:
acs5-blockgroup-data.R: blockgroup-level variables from US census ACS 5-year estimatesacs5-county-data.R: county-level variables from US census ACS 5-year estimatesacs5-tract-data.R: tract-level variables from US census ACS 5-year estimatesalice-county-data.R: (ALICE)[https://www.unitedforalice.org/] datahelpers.R: helper text for app interfacelife-exp-county-data.R: life expectancy county-level datamagdist-data.R: magisterial district geometry dataparks-osm-data.R: local park polygons dataschools-data.R: school location and attendance zone geometry dataseg-county-tract-data.R: segregation measures for county and tract level
This folder also includes files required for the data workflow:
regional_tractnames.csv: defines tract names for all localities included in appprettytable_data_sources.xlsx: metadata descriptions for all measures in app
All collected and cleaned data are saved in the specific update year folder in /data (not currently in Github repo). These include:
acs5_blockgroup.RDSacs5_county.RDSacs5_tract.RDSalice.RDScounty_life_exp.RDSmcd_sf.geojson:parks_OSM_sf.geojsonsabselem_sf.geojsonsabshigh_sf.geojsonschools_sf.geojsonseg_county.RDSseg_tract.RDSapp_data_[dashboard year].Rdata
Files to create app
app.R: the file to create the appcville-atlas-template.html: HTML app template filedeploy.Rwww/app_data_[dashboard year].qs2: data for app generated from datacode