Overview
This example demonstrates a complete land use and cover (LUC) change analysis using the São Lourenço river basin dataset. The São Lourenço river basin is a major Pantanal wetland contribution area located in the Cerrado Savannah biome in southeast Mato Grosso, Brazil.Dataset Background
The dataset covers approximately 22,400 km² and includes five LUC maps from 2002, 2008, 2010, 2012, and 2014. During this 12-year period, the region experienced about 12% land cover change, including deforestation and intensification of agricultural uses. Data Source: 4th edition of the Monitoring of Changes in Land cover and Land Use in the Upper Paraguay River Basin - Brazilian portion, provided by Embrapa Pantanal, Instituto SOS Pantanal, and WWF-Brasil (2015). Data Format: The dataset is available as a 5-layer RasterStack from Zenodo (doi:10.5281/zenodo.3685230).Loading the Dataset
First, download and load the São Lourenço Basin dataset:Creating the Contingency Table
Extract LUC transitions from the raster time series:contingencyTable() function returns five objects:
lulc_Multistep: Contingency table for all time stepslulc_Onestep: Contingency table for the entire period (2002-2014)tb_legend: Category names and colors (must be edited)totalArea: Study area size in km² and pixelstotalInterval: Total time interval in years
Editing the Legend Table
The legend must be edited to reflect actual land cover categories. The São Lourenço dataset uses Portuguese acronyms as defined in the original source:Category Descriptions
| Acronym | Category | Type | Description |
|---|---|---|---|
| Ap | Pasture | Anthropic | Pasture land |
| FF | Forest | Natural | Forest formations |
| SA | Park Savannah | Natural | Savannah with sparse trees |
| SG | Gramineous Savannah | Natural | Grass-dominated savannah |
| aa | Anthropized Vegetation | Anthropic | Degraded vegetation |
| SF | Wooded Savannah | Natural | Dense savannah woodland |
| Agua | Water body | Natural | Rivers and lakes |
| Iu | Urban | Anthropic | Urban areas |
| Ac | Crop farming | Anthropic | Agricultural fields |
| R | Reforestation | Anthropic | Planted forests |
| Im | Mining | Anthropic | Mining areas |
Running Intensity Analysis
Perform a three-level intensity analysis focusing on Pasture (Ap) gains and Gramineous Savannah (SG) losses:- Interval Level (
interval_lvl): Change intensity across time intervals - Category Level (
category_lvlGain,category_lvlLoss): Gains and losses per category - Transition Level (
transition_lvlGain_n,transition_lvlLoss_m): Specific transitions
Creating Visualizations
Interval Level Plot
Visualize how the rate of change varies across time intervals:Category Level - Gain Analysis
Examine which categories are experiencing active or dormant gains:Category Level - Loss Analysis
Identify categories losing area:Transition Level - Pasture Gains
Determine which categories are transitioning to pasture:Transition Level - Savannah Losses
Identify where gramineous savannah is transitioning:Additional Visualizations
Net and Gross Changes
Visualize the overall change balance:Chord Diagram
Display transitions between all categories for the entire period:Sankey Diagram - Multi-step
Visualize transitions across all time points:Evolution Bar Plot
Show how category areas change over time:Interpreting Results
Key Findings
- Interval Level: The analysis reveals whether change is constant or accelerating/decelerating over time.
-
Category Level:
- Active Gain: Categories gaining area faster than the uniform rate
- Dormant Gain: Categories gaining area slower than the uniform rate
- Active Loss: Categories losing area faster than the uniform rate
- Dormant Loss: Categories losing area slower than the uniform rate
-
Transition Level:
- Targeted Transition: Specific category pairs showing systematic conversion patterns
- Uniform Transition: Random or dispersed conversion patterns
Statistical Interpretation
The uniform intensity represents the null hypothesis of random change. Deviations indicate non-random patterns:- Intensity > Uniform: Active or targeted change
- Intensity < Uniform: Dormant or avoided change
- Intensity ≈ Uniform: Random change