Queens Hazard Ranking

Hazard Categories

The Queens Resource Map will display ranked hazard-related preparedness and recovery resources and messaging at the Community District Tabulation Area (CDTA) level.

Our hazard categorization is based on New York City’s 2024 Jurisdictional Risk Assessment1 report. The 2024 report uses the Pennsylvania Public Health Risk Assessment Tool (PHRAT) model in order to develop a “Planning Priority Score” used to suggest where New York City should focus its resources and planning efforts. The ten categories defined by the 2024 JRA report and their rank are:

Rank

JRA Hazard

1

Flooding

2

Hazardous Materials Release

3

Pandemic

4

Infectious Disease Outbreak

5

Coastal Storm

6

Mass Casualty Event

7

Chemical Threats

8

Temperature Extremes

9

Utility Interruption

10

Cyberattack

Our intended user is a New Yorker concerned about an imminent threat, rather than a municpal agency or staffer. To support this use case, we’ve modified the hazard categorization accordingly:

Queens Map Hazard

Notes

Heavy Rain

Added to capture non-coastal stormwater flooding

Coastal Storm

Extreme Heat

Broken out from Temperature Extremes

Extreme Cold

Broken out from Temperature Extremes

Hazmat / Chemical

Combines Hazardous Materials Release and Chemical Threats

Mass Casualty Event / Active Shooter

Extends Mass Casualty Event

Infectious Disease

Combines Pandemic and Infectious Disease Outbreak

Blackout & Cyberattack (EMP)

Combines Utility Interruption and Cyberattack

Exploratory Analysis

Data Sources

Hazard ranking among Queens CDTAs requires data sources that can be used to differentiate the relative risks between districts. These data are not available for all hazards:

Queens Map Hazard

Data Source

Heavy Rain

Stormwater Flood Maps

Coastal Storm

Current-day Storm Surge FVI

Extreme Heat

Heat Vulnerability Index

Extreme Cold

None available

Hazmat / Chemical

Chemically Intensive Small Businesses
Hazardous Waste Material Storage

Mass Casualty Event / Active Shooter

None available

Infectious Disease

Pandemic Influenza Vulnerability Index

Blackout & Cyberattack (EMP)

None available

In the absence of available information at the Community District level, extreme cold, mass casualty events / active shooter incidents, and blackout & cyberattack cannot be ranked.

In order to identify a suitable ranking methodology for the remaining hazards, a discussion of the disparate data is warranted.

Code
# Fetch data sources

cdta <- read_sf("https://services5.arcgis.com/GfwWNkhOj9bNBqoJ/arcgis/rest/services/NYC_Community_District_Tabulation_Areas_2020/FeatureServer/0/query?where=CDTAType=0&outFields=*&outSR=4326&f=pgeojson") |> 
  mutate(cdtaCode = paste0(
    BoroCode,
    str_sub(CDTA2020, -2)
  ))

stormwater_limited <- read_sf("https://github.com/BetaNYC/q-map/releases/download/data-v4/stormwater_limited_1_77.geojson") |> st_make_valid()

stormwater_moderate <- read_sf("https://github.com/BetaNYC/q-map/releases/download/data-v4/stormwater_moderate_2_13.geojson") |> 
  st_make_valid()

ss_cur_fvi <- soc_read(
  "https://data.cityofnewyork.us/Environment/New-York-City-s-Flood-Vulnerability-Index/mrjc-v9pm.json",
  query = soc_query(
    select = "the_geom, GEOID, ss_cur"
  ),
  include_synthetic_cols = FALSE
)

hvi <- read_sf("https://services1.arcgis.com/8cuieNI8NbqQZQVJ/arcgis/rest/services/HVI_by_CDTA_CRAD_2024/FeatureServer/0/query?where=1=1&outFields=*&outSR=4326&f=pgeojson")

chem_small_biz <- read_sf("https://services3.arcgis.com/A6Zjpzrub8ESZ3c7/arcgis/rest/services/Chemically%20Intensive%20Small%20Businesses_2/FeatureServer/0/query?where=1=1&outFields=*&outSR=4326&f=pgeojson")

hazmat_storage <- read_sf("https://services6.arcgis.com/yG5s3afENB5iO9fj/arcgis/rest/services/EPA_RCA_Fuel_Oil_Storage/FeatureServer/0/query?where=1=1&outFields=*&outSR=4326&f=pgeojson")

pivi <- read_sf("https://services1.arcgis.com/8cuieNI8NbqQZQVJ/arcgis/rest/services/Pandemic_Influenza_Vulnerability_Index/FeatureServer/0/query?where=1=1&outFields=*&outSR=4326&f=pgeojson")

# Aggregate where needed

## Stormwater -> CDTA
stormwater_all <- st_union(
  st_union(stormwater_limited),
  st_union(stormwater_moderate)
) |> 
  st_transform(4326) |> 
  st_make_valid()

stormwater_pct <- cdta |> 
  mutate(cdta_area = st_area(geometry)) |> 
  st_intersection(stormwater_all) |> 
  transmute(CDTA2020,
            stormwater_pct = as.numeric(st_area(geometry) / cdta_area) * 100) |>
  st_drop_geometry()

cdta <- cdta |> 
  left_join(stormwater_pct) |> 
  mutate(stormwater_pct = replace_na(stormwater_pct, 0))

## Tract-level FVI -> CDTA
# Assign max FVI to CD
ss_cur_fvi_cd <- ss_cur_fvi |> 
  st_join(cdta |> select(CDTA2020),
          largest = TRUE)

ss_cur_fvi_cd <- ss_cur_fvi_cd |> 
  st_drop_geometry() |> 
  group_by(CDTA2020) |> 
  summarize(max_ss_cur_fvi = max(ss_cur, na.rm = T))
 
cdta <- cdta |> 
  left_join(ss_cur_fvi_cd)

# Hazmat storage
cdta$hazmat_count <- lengths(st_intersects(cdta, hazmat_storage))

# Join remainder

## HVI
cdta <- cdta |> 
  left_join(hvi |> 
              st_drop_geometry() |> 
              select(CommDist, HVI),
            by = join_by(cdtaCode == CommDist))

## Chemically Intensive Small Business count
cdta <- cdta |> 
  left_join(chem_small_biz |> 
              st_drop_geometry() |> 
              select(BoroCD, top_3) |> 
              mutate(BoroCD = as.character(BoroCD)) |> 
              rename(chem_count = "top_3"),
            by = join_by(cdtaCode == BoroCD))

## PIVI
cdta <- cdta |> 
  left_join(pivi |> 
              st_drop_geometry() |> 
              select(COMMDIST, PIVI),
            by = join_by(cdtaCode == COMMDIST))

cdta <- cdta |> 
  select(BoroCode,CDTA2020, cdtaCode, CDTAName,
         stormwater_pct, max_ss_cur_fvi, hazmat_count, HVI, chem_count, PIVI) |> 
  relocate(geometry, .after = last_col()) |> 
  mutate(max_ss_cur_fvi = as.integer(max_ss_cur_fvi))

Heavy Rain

The impact of heavy rain on a given Community District is taken as the percent area that experiences stormwater flooding of any kind (i.e. greater than 4 inches of flooding without sea level rise under a limited- or moderate-intensity rainfall event)2. Citywide, this percentage ranges from 0.3% to 3.52%. In Queens, the percentage ranges from 0.41% to 3.08%. All 59 Community Districts experience some stormwater flooding.

Code
boro_fill <- list(
  scale_fill_manual(
    name   = NULL,
    values = c(`TRUE` = "#3258a3", `FALSE` = "#cedef0"),
    labels = c(`TRUE` = "Queens", `FALSE` = "Other Boroughs"),
    breaks = c(TRUE, FALSE)
  ),
  theme(
    legend.position      = "top",
    legend.justification = "left",
    legend.margin        = margin(t = 0, b = 6),
    legend.key.size      = unit(11, "pt"),
    legend.text          = element_text(size = 9)
  )
)

ggplot(cdta) + 
  geom_col(aes(x = fct_reorder(CDTA2020, stormwater_pct), 
               y = stormwater_pct,
               fill = BoroCode == 4)) +
  geom_hline(yintercept = median(cdta$stormwater_pct),
             linetype = "dashed", colour = "#ea4943") +
  theme(
    panel.background   = element_blank(),
    panel.grid.major.x = element_blank(),
    panel.grid.minor.x = element_blank(),
    panel.grid.minor.y = element_line(colour = "#ebebeb"),
    panel.grid.major.y = element_line(colour = "#ebebeb"),
    axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5)
    )+
  labs(title = "Stormwater Flood Extent in CDTAs", x = "CDTA", y = "Stormwater Flood Extent [%]") +
  annotate("text", x = 1, y = median(cdta$stormwater_pct),
           label = "Citywide median", colour = "#ea4943",
           hjust = 0, vjust = -0.6, size = 3) +
  boro_fill

Coastal Storm

The Department of Health and Mental Hygiene’s Flood Vulnerability Index estimates neighborhood vulnerability to flooding by combining susceptibility to harm and capacity to recover3. This project makes use of the storm surge index based on current-current day sea level. CDTAs are assigned an FVI value of 1-5 based on the maximum census tract value that overlaps with the district boundary. Based on this approach, 40 of 59 NYC CDTAs are vulnerable to coastal flooding; 9 of 14 Queens CDTAs are vulnerable to coastal flooding:

Code
cil_table(cdta |> 
            st_drop_geometry() |> 
            filter(BoroCode == 4) |> 
            select(CDTAName, max_ss_cur_fvi) |> 
            mutate(max_ss_cur_fvi = as.character(max_ss_cur_fvi)) |> 
            rename(
              "CDTA Name" = "CDTAName",
              "Storm Surge FVI, 2020s" = "max_ss_cur_fvi"
            ),
          full_height = TRUE
          )

CDTA Name

Storm Surge FVI, 2020s

QN01 Astoria-Queensbridge (CD 1 Equivalent)

4

QN02 Long Island City-Sunnyside-Woodside (CD 2 Approximation)

4

QN03 Jackson Heights-East Elmhurst (CD 3 Approximation)

2

QN04 Elmhurst-Corona (CD 4 Approximation)

QN05 Ridgewood-Maspeth-Middle Village (CD 5 Approximation)

QN06 Forest Hills-Rego Park (CD 6 Approximation)

3

QN07 Flushing-Murray Hill-Whitestone (CD 7 Approximation)

4

QN08 Fresh Meadows-Hillcrest-Briarwood (CD 8 Approximation)

QN09 Kew Gardens-Richmond Hill-Woodhaven (CD 9 Approximation)

QN10 South Ozone Park-Howard Beach (CD 10 Approximation)

5

QN11 Auburndale-Bayside-Douglaston (CD 11 Approximation)

3

QN12 Jamaica-St. Albans-Hollis (CD 12 Approximation)

QN13 Queens Village-Bellerose-Rosedale (CD 13 Approximation)

4

QN14 The Rockaways (CD 14 Approximation)

5

Code
ggplot(cdta) + 
  geom_col(aes(x = fct_reorder(CDTA2020, max_ss_cur_fvi, .na_rm = F, .default = -Inf), 
               y = max_ss_cur_fvi,
               fill = BoroCode == 4)) +
  geom_hline(yintercept = median(cdta$max_ss_cur_fvi, na.rm = T),
             linetype = "dashed", colour = "#ea4943") +
  theme(
    panel.background   = element_blank(),
    panel.grid.major.x = element_blank(),
    panel.grid.minor.x = element_blank(),
    panel.grid.minor.y = element_line(colour = "#ebebeb"),
    panel.grid.major.y = element_line(colour = "#ebebeb"),
    axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5)
    )+
  labs(title = "Flood Vulnerability Index in CDTAs",
       subtitle = "Storm Surge, 2020s Sea Level",
       x = "CDTA", y = "FVI [1-5]") +
  annotate("text", x = 1, y = median(cdta$max_ss_cur_fvi, na.rm = T),
           label = "Citywide median", colour = "#ea4943",
           hjust = 0, vjust = -0.6, size = 3) +
  boro_fill

Extreme Heat

Similarly, DOHMH’s Heat Vulnerability Index combines neighborhood environmental and social factors to detail the distribution of the risk of death from heat4. Unlike the FVI, the HVI is released at the CDTA level, so aggregation is not necessary.

Code
ggplot(cdta) + 
  geom_col(aes(x = fct_reorder(CDTA2020, HVI), 
               y = HVI,
               fill = BoroCode == 4)) +
  geom_hline(yintercept = median(cdta$HVI),
             linetype = "dashed", colour = "#ea4943") +
  theme(
    panel.background   = element_blank(),
    panel.grid.major.x = element_blank(),
    panel.grid.minor.x = element_blank(),
    panel.grid.minor.y = element_line(colour = "#ebebeb"),
    panel.grid.major.y = element_line(colour = "#ebebeb"),
    axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5)
    )+
  labs(title = "Heat Vulnerability Index in CDTAs", x = "CDTA", y = "HVI [1-5]") +
  annotate("text", x = 1, y = median(cdta$HVI),
           label = "Citywide median", colour = "#ea4943",
           hjust = 0, vjust = -0.6, size = 3) +
  boro_fill

Hazmat / Chemical

Two hazmat / chemical threat data sources are referenced in the 2024 JRA report.

The first is a dataset of Chemically Intensive Small Businesses, which provides a count of these businesses per CDTA5. The count ranges from 4 to 202 citywide; In Queens, the range is from 25 to 202. Notably, 10 of 14 Queens CDTAs have more chemically intensive small businesses than the citywide median. The CDTA with the highest number of chemically intensive small businesses is Astoria-Queensbridge.

Code
ggplot(cdta) + 
  geom_col(aes(x = fct_reorder(CDTA2020, chem_count), 
               y = chem_count,
               fill = BoroCode == 4)) +
  geom_hline(yintercept = median(cdta$chem_count),
             linetype = "dashed", colour = "#ea4943") +
  theme(
    panel.background   = element_blank(),
    panel.grid.major.x = element_blank(),
    panel.grid.minor.x = element_blank(),
    panel.grid.minor.y = element_line(colour = "#ebebeb"),
    panel.grid.major.y = element_line(colour = "#ebebeb"),
    axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5)
    )+
  labs(title = "Chemically Intensive Small Businesses in CDTAs", x = "CDTA", y = "Count") +
  annotate("text", x = 1, y = median(cdta$chem_count),
           label = "Citywide median", colour = "#ea4943",
           hjust = 0, vjust = -0.6, size = 3) +
  boro_fill

The second dataset contains the locations of Fuel Oil / Hazardous Waste Material Storage sites across the city6. These data come from the EPA’s Resource Conservation and Recovery Act biennial report. There are 207 sites citywide.Counting sites per district gives a range of 0 to 13; in Queens the range is 0 to 8. Sites are mapped below:

Code
# Compute quintiles for choropleth map
hazmat_breaks <- quantile(cdta$hazmat_count, probs = seq(0, 1, 0.2), type = 1)
hazmat_colors <- colorRampPalette(c("grey80", "#efd1cc", "#db7a6b", "#a44132"))(5)

# Bin labels based on breaks
bin_low  <- c(min(cdta$hazmat_count), unname(hazmat_breaks[2:5]))
bin_high <- c(unname(hazmat_breaks[2:5]) - 1, max(cdta$hazmat_count))
bin_labels <- ifelse(bin_low == bin_high, bin_low, paste0(bin_low, "–", bin_high))

# HTML popups
hazmat_sites <- hazmat_storage |>
  mutate(hazmat_popup = paste0("<strong>", HANDLER_NA, "</strong><br/>", TOP3))

maplibre(bounds = cdta,
         style = carto_style("positron")) |>
  add_fill_layer(
    id = "hazmat-count",
    source = cdta,
    fill_color = step_expr(
      column = "hazmat_count",
      base   = hazmat_colors[1],
      values = unname(hazmat_breaks[2:5]),
      stops  = hazmat_colors[-1]
    ),
    fill_opacity = 0.85,
    fill_outline_color = "#ffffff",
    popup = "CDTAName"
  ) |>
  add_circle_layer(
    id = "hazmat-sites",
    source = hazmat_sites,
    circle_color = "#0b0b0b",
    circle_radius = 4,
    circle_stroke_color = "#ffffff",
    circle_stroke_width = 1,
    popup = "hazmat_popup"
  ) |>
  add_legend(
    "Hazmat sites per CDTA",
    values = bin_labels,
    colors = hazmat_colors,
    type = "categorical",
    style = list(
      background_color = "#fefcfa",
      backgroud_opacity = 0.8
    )
  )

Hazmat location count by CDTA:

Code
ggplot(cdta) + 
  geom_col(aes(x = fct_reorder(CDTA2020, hazmat_count), 
               y = hazmat_count,
               fill = BoroCode == 4)) +
  geom_hline(yintercept = median(cdta$hazmat_count),
             linetype = "dashed", colour = "#ea4943") +
  theme(
    panel.background   = element_blank(),
    panel.grid.major.x = element_blank(),
    panel.grid.minor.x = element_blank(),
    panel.grid.minor.y = element_line(colour = "#ebebeb"),
    panel.grid.major.y = element_line(colour = "#ebebeb"),
    axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5)
    )+
  labs(title = "Hazmat storage locations in CDTAs", x = "CDTA", y = "Count") +
  annotate("text", x = 1, y = median(cdta$hazmat_count),
           label = "Citywide median", colour = "#ea4943",
           hjust = 0, vjust = -0.6, size = 3) + 
  boro_fill

Infectious Disease

The 2024 JRA also references DOHMH’s Pandemic Influenza Vulnerability Index, is produced by analyzing potential exposure, susceptibility, and access to treatment at the Community District Level7. Note that Queens CDTAs have PIVI values of 1 or 2 (out of 5):

Code
ggplot(cdta) + 
  geom_col(aes(x = fct_reorder(CDTA2020, PIVI), 
               y = PIVI,
               fill = BoroCode == 4)) +
  geom_hline(yintercept = median(cdta$PIVI),
             linetype = "dashed", colour = "#ea4943") +
  theme(
    panel.background   = element_blank(),
    panel.grid.major.x = element_blank(),
    panel.grid.minor.x = element_blank(),
    panel.grid.minor.y = element_line(colour = "#ebebeb"),
    panel.grid.major.y = element_line(colour = "#ebebeb"),
    axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5)
    )+
  labs(title = "Pandemic Influenza Vulnerability Index in CDTAs", x = "CDTA", y = "Count") +
  annotate("text", x = 1, y = median(cdta$PIVI),
           label = "Citywide median", colour = "#ea4943",
           hjust = 0, vjust = -0.6, size = 3) +
  boro_fill

Hazard Ranking

As three of the five rankable hazards (coastal storm, extreme heat, infectious disease) are described using a 1 -5 vulnerability index, an initial approach to ranking the disparate hazards is to express the other two (heavy rain, hazmat/chemical) in terms of quintiles denoted 1 -5. As a simplification, the count of hazmat and fuel oil storage sites per CDTA may be added to the count of chemically intensive small businesses. For the purposes of district-level hazard ranking, districts not exposed to coastal storm surge are assigned an FVI value of 0 rather than NA.

The resulting quintile ranks for stormwater flooding:

Code
# Create quintile columns
cdta <- cdta |> 
  # Add hazmat and chemically intensive small businesses first
  mutate(hazmat_chem_count = hazmat_count + chem_count) |>
  mutate(
    sw_quintile = cut(
      stormwater_pct,
      breaks = quantile(stormwater_pct, probs = seq(0,1,0.2)),
      labels = FALSE,
      include.lowest = TRUE
    ),
    hazmat_quintile = cut(
      hazmat_chem_count,
      breaks = quantile(hazmat_chem_count, probs = seq(0,1,0.2)),
      labels = FALSE,
      include.lowest = TRUE
    )
  )

ggplot(cdta) + 
  geom_col(aes(x = fct_reorder(CDTA2020, sw_quintile), 
               y = sw_quintile,
               fill = BoroCode == 4)) +
  geom_hline(yintercept = median(cdta$sw_quintile),
             linetype = "dashed", colour = "#ea4943") +
  theme(
    panel.background   = element_blank(),
    panel.grid.major.x = element_blank(),
    panel.grid.minor.x = element_blank(),
    panel.grid.minor.y = element_line(colour = "#ebebeb"),
    panel.grid.major.y = element_line(colour = "#ebebeb"),
    axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5)
    )+
  labs(title = "Stormwater Flooding Quintile Rank in CDTAs", x = "CDTA", y = "Count") +
  annotate("text", x = 1, y = median(cdta$sw_quintile),
           label = "Citywide median", colour = "#ea4943",
           hjust = 0, vjust = -0.6, size = 3) +
  boro_fill

And the combined hazmat / chemically intensive small business count:

Code
ggplot(cdta) + 
  geom_col(aes(x = fct_reorder(CDTA2020, hazmat_quintile), 
               y = hazmat_quintile,
               fill = BoroCode == 4)) +
  geom_hline(yintercept = median(cdta$hazmat_quintile),
             linetype = "dashed", colour = "#ea4943") +
  theme(
    panel.background   = element_blank(),
    panel.grid.major.x = element_blank(),
    panel.grid.minor.x = element_blank(),
    panel.grid.minor.y = element_line(colour = "#ebebeb"),
    panel.grid.major.y = element_line(colour = "#ebebeb"),
    axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5)
    )+
  labs(title = "Hazmat / Chemically Intestive Small Business Quintile Rank in CDTAs", x = "CDTA", y = "Count") +
  annotate("text", x = 1, y = median(cdta$hazmat_quintile),
           label = "Citywide median", colour = "#ea4943",
           hjust = 0, vjust = -0.6, size = 3) +
  boro_fill

Code
hazard_names <- c(
  sw_quintile     = "Heavy Rain",
  max_ss_cur_fvi  = "Coastal Storm",
  HVI             = "Extreme Heat",
  hazmat_quintile = "Hazmat / Chemical",
  PIVI            = "Infectious Disease"
)



ranked <- cdta |> 
  st_drop_geometry() |> 
  filter(BoroCode == 4) |> 
  mutate(max_ss_cur_fvi = replace_na(max_ss_cur_fvi, 0)) |> 
  select(CDTA2020, max_ss_cur_fvi, HVI, PIVI, sw_quintile, hazmat_quintile) |> 
  pivot_longer(-CDTA2020, names_to = "hazard", values_to = "score") |>
  mutate(hazard = recode(hazard, !!!hazard_names)) |>
  arrange(CDTA2020, desc(score), hazard) |>
  mutate(rank  = paste("Rank", row_number()),
         label = paste0(hazard, " (", score, ")"), .by = CDTA2020) |>
  pivot_wider(id_cols = CDTA2020, names_from = rank, values_from = label) |> 
  rename(CDTA = CDTA2020)

# One tint per hazard, all at ~88% lightness so no category outweighs another.
# Heavy Rain and Hazmat carry the blue and red already used by the choropleths.
hazard_fill <- c(
  "Heavy Rain"         = "#d1ddee",
  "Hazmat / Chemical"  = "#efd1cc",
  "Extreme Heat"       = "#f3f0ce",
  "Infectious Disease" = "#cef3da",
  "Coastal Storm"      = "#eecef3"
)

# Cells read "Heavy Rain (5)", so the tints are re-keyed onto the labels the
# table actually holds -- built from the data so a new score can't miss a colour.
rank_labels <- unique(unlist(ranked[-1]))
label_fill <- setNames(
  unname(hazard_fill[sub(" \\(.*\\)$", "", rank_labels)]),
  rank_labels
)

cil_table(ranked,
          full_height = TRUE,
          fill = label_fill
          )

CDTA

Rank 1

Rank 2

Rank 3

Rank 4

Rank 5

QN01

Hazmat / Chemical (5)

Heavy Rain (5)

Coastal Storm (4)

Extreme Heat (3)

Infectious Disease (2)

QN02

Hazmat / Chemical (5)

Coastal Storm (4)

Heavy Rain (4)

Extreme Heat (3)

Infectious Disease (1)

QN03

Extreme Heat (3)

Hazmat / Chemical (3)

Heavy Rain (3)

Coastal Storm (2)

Infectious Disease (2)

QN04

Heavy Rain (5)

Hazmat / Chemical (4)

Extreme Heat (3)

Infectious Disease (2)

Coastal Storm (0)

QN05

Hazmat / Chemical (5)

Heavy Rain (3)

Extreme Heat (1)

Infectious Disease (1)

Coastal Storm (0)

QN06

Heavy Rain (4)

Coastal Storm (3)

Extreme Heat (2)

Hazmat / Chemical (2)

Infectious Disease (2)

QN07

Hazmat / Chemical (5)

Coastal Storm (4)

Extreme Heat (2)

Heavy Rain (2)

Infectious Disease (2)

QN08

Hazmat / Chemical (3)

Extreme Heat (2)

Heavy Rain (1)

Infectious Disease (1)

Coastal Storm (0)

QN09

Hazmat / Chemical (4)

Heavy Rain (4)

Extreme Heat (3)

Infectious Disease (2)

Coastal Storm (0)

QN10

Coastal Storm (5)

Hazmat / Chemical (4)

Extreme Heat (3)

Heavy Rain (3)

Infectious Disease (1)

QN11

Coastal Storm (3)

Hazmat / Chemical (3)

Extreme Heat (1)

Heavy Rain (1)

Infectious Disease (1)

QN12

Extreme Heat (5)

Hazmat / Chemical (5)

Heavy Rain (5)

Infectious Disease (2)

Coastal Storm (0)

QN13

Coastal Storm (4)

Extreme Heat (4)

Hazmat / Chemical (4)

Heavy Rain (4)

Infectious Disease (1)

QN14

Coastal Storm (5)

Extreme Heat (4)

Heavy Rain (4)

Hazmat / Chemical (2)

Infectious Disease (1)

Considerations based on this initial ranking:

  1. Queens has many chemically intensive small businesses compared to other boroughs. This comes across in the rankings, where 11 of 14 Queens districts have Hazmat/Chemical ranked in position 1 or 2.
  2. Queens is less vulnerable to infectious disease than other boroughs. The only districts that do not have infectious disease ranked last are those Queens districts which are not exposed to coastal storm surge. All Queens districts have a PIVI score of 1 or 2.

We may then, ask what the ranking looks among only heavy rain, coastal storm, and extreme heat:

Code
hazard_names_3 <- c(
  sw_quintile     = "Heavy Rain",
  max_ss_cur_fvi  = "Coastal Storm",
  HVI             = "Extreme Heat"
)

ranked_3 <- cdta |> 
  st_drop_geometry() |> 
  filter(BoroCode == 4) |> 
  mutate(max_ss_cur_fvi = replace_na(max_ss_cur_fvi, 0)) |> 
  select(CDTA2020, max_ss_cur_fvi, HVI, sw_quintile) |> 
  pivot_longer(-CDTA2020, names_to = "hazard", values_to = "score") |>
  mutate(hazard = recode(hazard, !!!hazard_names_3)) |>
  arrange(CDTA2020, desc(score), hazard) |>
  mutate(rank  = paste("Rank", row_number()),
         label = paste0(hazard, " (", score, ")"), .by = CDTA2020) |>
  pivot_wider(id_cols = CDTA2020, names_from = rank, values_from = label) |> 
  rename(CDTA = CDTA2020)

hazard_fill_3 <- c(
  "Heavy Rain"         = "#d1ddee",
  "Extreme Heat"       = "#f3f0ce",
  "Coastal Storm"      = "#eecef3"
)

rank_labels_3 <- unique(unlist(ranked_3[-1]))
label_fill_3 <- setNames(
  unname(hazard_fill[sub(" \\(.*\\)$", "", rank_labels_3)]),
  rank_labels_3
)

cil_table(ranked_3,
          full_height = TRUE,
          fill = label_fill_3
          )

CDTA

Rank 1

Rank 2

Rank 3

QN01

Heavy Rain (5)

Coastal Storm (4)

Extreme Heat (3)

QN02

Coastal Storm (4)

Heavy Rain (4)

Extreme Heat (3)

QN03

Extreme Heat (3)

Heavy Rain (3)

Coastal Storm (2)

QN04

Heavy Rain (5)

Extreme Heat (3)

Coastal Storm (0)

QN05

Heavy Rain (3)

Extreme Heat (1)

Coastal Storm (0)

QN06

Heavy Rain (4)

Coastal Storm (3)

Extreme Heat (2)

QN07

Coastal Storm (4)

Extreme Heat (2)

Heavy Rain (2)

QN08

Extreme Heat (2)

Heavy Rain (1)

Coastal Storm (0)

QN09

Heavy Rain (4)

Extreme Heat (3)

Coastal Storm (0)

QN10

Coastal Storm (5)

Extreme Heat (3)

Heavy Rain (3)

QN11

Coastal Storm (3)

Extreme Heat (1)

Heavy Rain (1)

QN12

Extreme Heat (5)

Heavy Rain (5)

Coastal Storm (0)

QN13

Coastal Storm (4)

Extreme Heat (4)

Heavy Rain (4)

QN14

Coastal Storm (5)

Extreme Heat (4)

Heavy Rain (4)

This second ranking highlights the need for hazard prioritization in the case of tied scores between hazards. One approach would be to consider geographic specificity. Coastal storm threat would come first, as it is the only hazard that is not city-wide. Next comes heavy rain, which is a citywide concern, but only of concern in specific areas that experience stormwater flooding. Last, then, would be extreme heat, whose spatial distribution is heterogeneous, but less acutely so than the other two threats, at least in terms of the physical environment.

Code
hazard_names_3 <- c(
  sw_quintile     = "Heavy Rain",
  max_ss_cur_fvi  = "Coastal Storm",
  HVI             = "Extreme Heat"
)

hazard_priority_3 <- c("Coastal Storm", "Heavy Rain", "Extr
eme Heat")

ranked_3 <- cdta |> 
  st_drop_geometry() |> 
  filter(BoroCode == 4) |> 
  mutate(max_ss_cur_fvi = replace_na(max_ss_cur_fvi, 0)) |> 
  select(CDTA2020, max_ss_cur_fvi, HVI, sw_quintile) |> 
  pivot_longer(-CDTA2020, names_to = "hazard", values_to = "score") |>
  mutate(hazard = recode(hazard, !!!hazard_names_3)) |>
  arrange(CDTA2020, desc(score), match(hazard, hazard_priority_3)) |>
  mutate(rank  = paste("Rank", row_number()),
         label = paste0(hazard, " (", score, ")"), .by = CDTA2020) |>
  pivot_wider(id_cols = CDTA2020, names_from = rank, values_from = label) |> 
  rename(CDTA = CDTA2020)

hazard_fill_3 <- c(
  "Heavy Rain"         = "#d1ddee",
  "Extreme Heat"       = "#f3f0ce",
  "Coastal Storm"      = "#eecef3"
)

rank_labels_3 <- unique(unlist(ranked_3[-1]))
label_fill_3 <- setNames(
  unname(hazard_fill[sub(" \\(.*\\)$", "", rank_labels_3)]),
  rank_labels_3
)

cil_table(ranked_3,
          full_height = TRUE,
          fill = label_fill_3
          )

CDTA

Rank 1

Rank 2

Rank 3

QN01

Heavy Rain (5)

Coastal Storm (4)

Extreme Heat (3)

QN02

Coastal Storm (4)

Heavy Rain (4)

Extreme Heat (3)

QN03

Heavy Rain (3)

Extreme Heat (3)

Coastal Storm (2)

QN04

Heavy Rain (5)

Extreme Heat (3)

Coastal Storm (0)

QN05

Heavy Rain (3)

Extreme Heat (1)

Coastal Storm (0)

QN06

Heavy Rain (4)

Coastal Storm (3)

Extreme Heat (2)

QN07

Coastal Storm (4)

Heavy Rain (2)

Extreme Heat (2)

QN08

Extreme Heat (2)

Heavy Rain (1)

Coastal Storm (0)

QN09

Heavy Rain (4)

Extreme Heat (3)

Coastal Storm (0)

QN10

Coastal Storm (5)

Heavy Rain (3)

Extreme Heat (3)

QN11

Coastal Storm (3)

Heavy Rain (1)

Extreme Heat (1)

QN12

Heavy Rain (5)

Extreme Heat (5)

Coastal Storm (0)

QN13

Coastal Storm (4)

Heavy Rain (4)

Extreme Heat (4)

QN14

Coastal Storm (5)

Heavy Rain (4)

Extreme Heat (4)

The remaining hazard categories would then be pinned based on subject matter expert feedback, e.g.:

  1. Ranked
  2. Ranked
  3. Ranked
  4. Hazmat / Chemical
  5. Infectious Disease
  6. Extreme Cold
  7. Mass Casualty / Active Shooter Event
  8. Blackout / Cyberattack (EMP)