Skip to contents

This function provides a summary of land cover changes for specified planning units. It returns a sankey plot and the top land cover changes.

Usage

lcc_summary_by_pu(
  crosstab_tbl,
  pu_column,
  pu_name,
  sankey_area_cutoff,
  n_top_lcc = 10
)

Arguments

crosstab_tbl

A data frame containing at least 2 columns of land cover types (could be character, numeric, or factor) and a "Freq" column containing numeric values.

pu_column

A character string representing the column name of the planning unit in crosstab_tbl.

pu_name

A character string representing the name of the planning unit.

sankey_area_cutoff

A numeric value indicating the minimum area of changes to be displayed in the Sankey plot.

n_top_lcc

An integer representing the number of top land cover changes to be displayed. Default is 10.

Value

A list containing the Sankey plot (sankey_pu) and a data frame of the top land cover changes (luc_top_pu).