create_comparison_map: Create comparison map (before/after, side-by-side)

View source: R/11-visualization.R

create_comparison_mapR Documentation

Create comparison map (before/after, side-by-side)

Description

Create comparison maps showing before/after analysis or side-by-side comparisons using reliable terra plotting.

Usage

create_comparison_map(
  data1,
  data2,
  comparison_type = "side_by_side",
  titles = c("Dataset 1", "Dataset 2"),
  region_boundary = NULL,
  color_scheme = "viridis",
  output_file = NULL,
  verbose = FALSE
)

Arguments

data1

First dataset (before, reference)

data2

Second dataset (after, comparison)

comparison_type

Type: "side_by_side", "difference"

titles

Titles for each dataset

region_boundary

Optional region boundary

color_scheme

Color scheme for datasets

output_file

Optional output file path

verbose

Print progress messages

Value

NULL (plots directly to device) or file path if saved

Examples

## Not run: 
# These examples require external data files not included with the package
# Before/after NDVI comparison
create_comparison_map("ndvi_2020.tif", "ndvi_2023.tif",
                     comparison_type = "side_by_side",
                     titles = c("2020", "2023"),
                     output_file = "ndvi_comparison.png")

## End(Not run)


geospatialsuite documentation built on Nov. 6, 2025, 1:06 a.m.