Skip to contents

Package overview

Package-level help and a concise workflow overview.

evacpath evacpath-package
evacpath: Least-cost pedestrian evacuation modeling in R

Complete workflow

Run the full evacuation modeling workflow and write outputs.

run_evacpath()
Run the full evacuation-path modeling workflow
make_output_clip_area()
Make an output clip area for evacuation polygons
write_evac_outputs()
Write evacpath outputs to disk

Input preparation

Read, clean, project, and prepare hazard, road, elevation, and tsunami inputs.

read_spatial()
Read a spatial input
prepare_evac_inputs()
Read and project the core evacuation inputs
prepare_hazard_zone()
Prepare a hazard zone from an inundation raster
prepare_tsunami_zones()
Prepare separate tsunami zones for escape analysis and visualization
clean_roads()
Clean a road/pathway network
crop_roads_to_inner_extent()
Crop roads to an inset extent before escape-point detection
make_region_area()
Create a broader analysis region around a study area
make_roads_in_zone()
Create a buffered road area inside an inundation or analysis zone
make_road_aware_escape_zone()
Add buffered road corridors to an escape-boundary zone

Evacuation geometry

Build origin grids, road masks, escape points, and evacuation polygons.

make_evac_grid()
Create an evacuation grid
make_road_origins()
Create road-based origin points inside the evacuation zone
find_escape_points()
Identify escape/safety points where roads cross the hazard-zone boundary
make_road_mask()
Create a road-constrained analysis mask
make_evac_polygons()
Create evacuation-distance and evacuation-time polygons

Least-cost modeling

Build conductance surfaces and calculate least-cost distance and evacuation time.

make_conductance_surface()
Create a slope-based conductance surface
calc_min_distance_to_safety()
Calculate minimum least-cost distance from origins to safety
calc_evac_time()
Convert distance to evacuation time
calculate_lc_path()
Calculate a least-cost path between one origin and one destination
calculate_min_dist()
Calculate the minimum path distance from a list of least-cost paths
interpolate_distance_surface()
Interpolate a distance surface from least-cost distance points

Diagnostics, scenarios, and validation

Compare assumptions, map bottlenecks, diagnose models, and validate routes.

diagnose_evac_model()
Diagnose evacuation-model inputs
has_errors()
Test whether diagnostics contain errors
compare_evac_scenarios()
Compare evacuation scenarios
map_evac_bottlenecks()
Map modeled evacuation bottlenecks
validate_evac_routes()
Validate modeled evacuation routes