GIS Assignment 4: Climate and Heat Vulnerability Analysis for Denver

Author

Rahel Makonnen

In case brief doesn’t open up document, RPUB link is here: https://rpubs.com/Rahela/1480452

Introduction

This GIS assignment explores the vulnerability to climate and heat within different census areas of Denver by utilizing a composite index to assess vulnerability. Throughout this course, we learned how to apply various spatial statistical techniques to check if vulnerability is concentrated in certain areas, pinpointing notable hot spots and cold spots. The study includes:

  • Analysis of global spatial autocorrelation using Moran’s I
  • Sensitivity testing with different index weighting
  • Hot spot analysis through Getis-Ord Gi*
  • An interactive web map designed for public engagement.

Data to Access & Packages to Load

library(sf) library(dplyr) library(spdep) library(tmap) library(leaflet) 
heat_index <- st_read(   "GIS2/data/processed/denver_climate_heat_vulnerability_index.gpkg",   quiet = TRUE ) %>%   arrange(GEOID)  gistar <- st_read(   "GIS2/data/processed/denver_climate_heat_vulnerability_gistar.gpkg",   quiet = TRUE ) 

Part 1: Global Moran’s I

Global Moran’s I was utilized to see if the scores related to climate and heat vulnerability are grouped together in different census tracts throughout Denver.

Spatial Weights Matrix

nb_queen <- poly2nb(   heat_index,   queen = TRUE )  lw_queen <- nb2listw(   nb_queen,   style = "W",   zero.policy = TRUE ) 

Moran’s I Test

moran_result <- moran.mc(   heat_index$climate_heat_vulnerability_score,   lw_queen,   nsim = 999,   alternative = "greater",   zero.policy = TRUE )  moran_result 

Interpretation

The Global Moran’s I analysis reveals that climate and heat vulnerability scores exhibit spatial clustering rather than a random arrangement throughout Denver. Areas with similar vulnerability levels are often found close to each other, indicating that there are geographical patterns in the underlying environmental and social factors. While Moran’s I helps us understand that clustering exists, it doesn’t pinpoint where these clusters are located. Therefore, local spatial analyses is necessary to find the specific areas with higher concentrations of vulnerability.

Part 2: Sensitivity Analysis of the Composite Index

In order to assess how strong the vulnerability index is, a system for weighing the sensitivity allowed more focus on how sensitive the population is.

heat_index <- heat_index %>%   mutate(     sensitivity_emphasized_raw =       0.25 * exposure_score +       0.50 * sensitivity_score +       0.25 * social_vulnerability_score   ) 

Rank Comparison

heat_index <- heat_index %>%   mutate(     primary_rank =       min_rank(desc(climate_heat_vulnerability_score)),      sensitivity_rank =       min_rank(desc(sensitivity_emphasized_raw)),      rank_change =       sensitivity_rank - primary_rank,      absolute_rank_change =       abs(rank_change)   )  largest_changes <- heat_index %>%   st_drop_geometry() %>%   select(     GEOID,     primary_rank,     sensitivity_rank,     rank_change,     absolute_rank_change   ) %>%   arrange(desc(absolute_rank_change)) %>%   slice(1:3)  largest_changes 

Interpretation

The weighting method led to some shifts in the rankings of specific census tracts across a variety, yet the overall layout stayed quite consistent. The three most significant changes in rankings were seen in GEOIDs:

  • 08031012001

  • 08031003401

  • 08031004002

Since most tracts only saw slight shifts in their rankings, it seems that the composite index is quite stable even with reasonable adjustments to the importance of different factors. This indicates that our insights about vulnerability trends aren’t significantly affected by moderate changes in how these factors are weighted.

Part 3: Getis-Ord Gi* Hot Spot Analysis

Getis-Ord Gi* statistics was utilized to pinpoint clusters where vulnerability is notably high or low in a statistically significant way.

Summary Statistics

summary(gistar$climate_heat_vulnerability_score)  table(gistar$gstar_class) 

Hot Spot Map

tm_shape(gistar) +   tm_polygons(     "gstar_class",     palette = c(       "Hot Spot" = "#d73027",       "Not Significant" = "gray85",       "Cold Spot" = "#4575b4"     ),     title = "Gi* Classification"   ) +   tm_layout(     title = "Climate and Heat Vulnerability Hot Spots and Cold Spots"   ) 

Highest Vulnerability Census Tracts

gistar %>%   st_drop_geometry() %>%   arrange(desc(climate_heat_vulnerability_score)) %>%   select(     GEOID,     climate_heat_vulnerability_score,     gstar_class   ) %>%   head(20) 

Interpretation

Some census tracts that have notably high vulnerability scores aren’t classified as statistically significant hot spots. Take, for instance, census tracts 08031007091, 08031006701, and 08031002604; they show relatively high vulnerability scores, yet they don’t qualify as hot spots. This happens because the Getis-Ord Gi* method assesses each tract in comparison to its neighboring tracts.

So, even if a tract has a high score but is surrounded by areas with lower scores, it may not create a statistically significant cluster. Conversely, Gi* focuses on identifying local clusters of vulnerability rather than just pinpointing isolated areas with high values.

Part 4: Interactive Web Map

By using a interactive map, users can access and choose layers between the climate and heat vulnerability index and the Gi* hot spot classification.

library(leaflet)
library(sf)

gistar_leaflet <- st_transform(gistar, 4326)

hover_label <- paste0(
  "<strong>Tract:</strong> ", gistar_leaflet$GEOID,
  "<br><strong>Score:</strong> ",
  round(gistar_leaflet$climate_heat_vulnerability_score, 2)
)

popup_text <- paste0(
  "<strong>GEOID:</strong> ", gistar_leaflet$GEOID,
  "<br><strong>Vulnerability Score:</strong> ",
  round(gistar_leaflet$climate_heat_vulnerability_score, 2),
  "<br><strong>Gi* Classification:</strong> ",
  gistar_leaflet$gstar_class
)

vuln_pal <- colorNumeric(
  palette = "YlOrRd",
  domain = gistar_leaflet$climate_heat_vulnerability_score
)

gstar_pal <- colorFactor(
  palette = c("#d73027", "gray85", "#4575b4"),
  domain = unique(gistar_leaflet$gstar_class)
)

leaflet(gistar_leaflet) %>%
  addProviderTiles(providers$CartoDB.Positron) %>%
  addPolygons(
    group = "Climate and Heat Vulnerability",
    fillColor = ~vuln_pal(climate_heat_vulnerability_score),
    fillOpacity = 0.8,
    color = "white",
    weight = 1,
    label = lapply(hover_label, htmltools::HTML),
    popup = lapply(popup_text, htmltools::HTML)
  ) %>%
  addPolygons(
    group = "Gi* Hot Spot Classification",
    fillColor = ~gstar_pal(gstar_class),
    fillOpacity = 0.8,
    color = "white",
    weight = 1,
    label = lapply(hover_label, htmltools::HTML),
    popup = lapply(popup_text, htmltools::HTML)
  ) %>%
  addLayersControl(
    overlayGroups = c(
      "Climate and Heat Vulnerability",
      "Gi* Hot Spot Classification"
    ),
    options = layersControlOptions(
      collapsed = FALSE
    )
  ) %>%
  hideGroup("Gi* Hot Spot Classification") %>%
  addLegend(
    position = "bottomright",
    pal = vuln_pal,
    values = ~climate_heat_vulnerability_score,
    title = "Climate & Heat Vulnerability"
  )

Since apparently I can only view my HTML interactive map via RStudio, forbidden access from the web, I decided to publish it on RPubs: HTML INTERACTIVE MAP

Accessibility

accessible_table <- gistar %>%   st_drop_geometry() %>%   select(     GEOID,     climate_heat_vulnerability_score,     gstar_class   )  write.csv(   accessible_table,   "GIS4_accessible_table_Makonnen.csv",   row.names = FALSE ) 

A CSV file of the results in case the interactive map isn’t accessible– showing access to the data.

Discussion & Conclusion

The climate and heat vulnerability index evaluates how susceptible different neighborhoods in Denver are to extreme heat. This index fuses together elements like climate exposure, population sensitivity, and social vulnerability into one cohesive measure—where higher scores reflect a heightened risk of vulnerability.

Through the Global Moran’s I analysis, it was found that vulnerability ratings are not randomly scattered but are instead clustered in specific areas of Denver. This suggests that nearby neighborhoods tend to face similar degrees of climate and heat vulnerability.

Meanwhile, the Getis-Ord Gi* analysis unearthed statistically significant areas with heightened or reduced vulnerability. These clusters indicate where vulnerability is particularly prevalent and might need extra focus from city planners, public health officials, and community groups.

The sensitivity analysis revealed that highlighting population sensitivity did modify the rankings for certain neighborhoods, but it did not greatly impact the overall vulnerability trends. This indicates that the composite index is fairly resilient to changes in how weighting is applied.

In designing the interactive map, the isolation of the vulnerability layer allows users to add the Gi* layer if they wish. This strategy minimizes visual overload and makes understanding the data easier.

However, a significant drawback of this analysis is that it relies on census tract groupings, which can mask significant variations within individual tracts. It’s important to understand that the findings shouldn’t be construed as the experiences of all individuals living in a high-vulnerability area. Assuming that every resident in such a neighborhood shares the same level of risk would be a misinterpretation of the map.

This work is aimed at urban planners, public health professionals, emergency management teams, and community organizations dedicated to enhancing heat resilience in Denver.