
Interactive Flow Accumulation Comparison
plot_flow_acc.RdCreates an interactive Shiny app to compare flow accumulation with its log-transformed version.
Allows toggling layers on/off and adjusting opacity for better visual comparison.
This function requires pre-calculated geomorphology metrics from calc_geomorph_metrics().
Arguments
- dtm
A SpatRaster object (from terra package) representing the Digital Elevation Model
- metrics
A list object returned from
calc_geomorph_metrics(). This parameter is required.
Examples
if (FALSE) { # \dontrun{
dtm <- rast("path/to/your/dtm.tif")
# Calculate metrics first
metrics <- calc_geomorph_metrics(dtm)
# Launch interactive comparison
plot_flow_acc(dtm, metrics = metrics)
} # }