Here we explore how secondary data sources cover the region by dimension, geography, and over time.
1 Dimensional
Explore coverage by dimension.
2 Geographic
Turns out this map is not as interesting as I’d hoped it would be. Currently showing the unique count of metrics with any values in a county. Need a better way to represent the missing data here though.
Let’s try an interactive map so we can explore each dimension
Code
# How many total metrics at county leveltotal_count <- datasets$dp_metrics_all %>%filter_fips('counties') %>%pull(variable_name) %>% unique %>% lengthtotal_count# Dimension crosswalkcrosswalk <- data_paper_meta %>%select(dimension, variable_name)dimension_counts <- data_paper_meta %>%select(dimension, variable_name, resolution) %>%filter(!is.na(variable_name), resolution !='state') %>%select(-resolution) %>%group_by(dimension) %>%summarize(count =n())dimension_counts# Counts of unique metrics in each county by dimensionvar_counts <- datasets$dp_metrics_all %>%filter_fips('counties') %>%left_join(crosswalk) %>%group_by(dimension, fips) %>%summarize(n_metrics =length(unique(variable_name)) ) %>%left_join(dimension_counts) %>%mutate(prop_metrics = n_metrics / count)var_counts# Join df <- neast_counties_2024 %>%left_join(var_counts)get_str(df)maps <- df %>%split(.$dimension) %>%imap(~ { to_hide <-ifelse(.y =='economics', FALSE, TRUE)mapview( .x, layer.name = .y, zcol ="prop_metrics",hide = to_hide,# col.regions = brewer.pal(5, "Greens"),col.regions =rev(viridis(5)),alpha.regions =0.7 ) })
Hamilton, Warren counties missing data in NY, and Cameron county in PA stick out in particular. And lots of economic data missing from much of Maine and New Hampshire.
3 Temporal
Add Isabella’s graphs showing metrics and indicators over the years.