create_accessibility_visualizations {greenR}R Documentation

Create Green Space Accessibility Visualizations

Description

Generates static and interactive visualizations for green space accessibility, including distance maps, coverage plots (spatial and population-weighted), and a radar plot with inside y-axis tick labels. Provides an interactive leaflet map with base and overlay controls.

Usage

create_accessibility_visualizations(
  accessibility_analysis,
  green_areas,
  mode = "walking"
)

Arguments

accessibility_analysis

Output from analyze_green_accessibility().

green_areas

An sf object of green areas (e.g., OSM polygons).

mode

Character. Mode to plot (for multi-mode results).

Value

A list with:

distance_map

ggplot map of grid distance to green space.

coverage_plot

Barplot of spatial and/or population-weighted coverage.

directional_plot

Radar plot for directional coverage (with y-axis/radius labels inside at N).

combined_plot

Patchwork combination of all static plots.

leaflet_map

Interactive leaflet map with overlays.

summary

Character summary of statistics.

directional_table

Table of directional mean coverage values.

data

Underlying data used for plotting.

Examples

## Not run: 
result <- analyze_green_accessibility(
  network_data = data$highways$osm_lines,
  green_areas = data$green_areas$osm_polygons,
  mode = "walking",
  grid_size = 300,
  population_raster = pop_raster_raw
)
viz <- create_accessibility_visualizations(result, data$green_areas$osm_polygons, mode = "walking")
print(viz$distance_map)
print(viz$coverage_plot)
print(viz$directional_plot)
print(viz$combined_plot)
viz$leaflet_map  # View in RStudio Viewer
cat(viz$summary)
print(viz$directional_table)

## End(Not run)

[Package greenR version 0.0.1.3 Index]