View source: R/create_accessibility_visualizations.R
| create_accessibility_visualizations | R Documentation |
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.
create_accessibility_visualizations(
accessibility_analysis,
green_areas,
mode = "walking"
)
accessibility_analysis |
Output from |
green_areas |
An |
mode |
Character. Mode to plot (for multi-mode results). |
A list with:
ggplot map of grid distance to green space.
Barplot of spatial and/or population-weighted coverage.
Radar plot for directional coverage (with y-axis/radius labels inside at N).
Patchwork combination of all static plots.
Interactive leaflet map with overlays.
Character summary of statistics.
Table of directional mean coverage values.
Underlying data used for plotting.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.