Function Signature
Description
Extracts LUC (Land Use and Cover) transitions for all input grids of the time series. This function creates cross-tabulation matrices that show how land categories transition from one time period to another.Parameters
Path (character), Raster* object or list of Raster* objects. See
raster::raster() for more information about supported file types.The pixel spatial resolution in meters. Used to calculate area in square kilometers from pixel counts.
Return Value
Returns a list containing 5 objects:Contingency table for all analysed time steps, containing 8 columns:
- Period (
<chr>): The period [Yt, Yt+1] - From (
<dbl>): Numerical code of a LUC category i - To (
<dbl>): Numerical code of a LUC category j - km2 (
<dbl>): Area in square kilometers that transited from category i to category j in the period from Yt to Yt+1 - Interval (
<dbl>): Interval of years between the first and last year of the period [Yt, Yt+1] - QtPixel (
<int>): Pixel count that transited from category i to category j in the period from Yt to Yt+1 - yearFrom (
<chr>): The year that the change comes from [Yt] - yearTo (
<chr>): The year that the change goes to [Yt+1]
Contingency table for the entire analysed period [Y1, YT], containing 8 columns identical to
lulc_Multistep.A table of the pixel values, names, and colors containing 3 columns:
- categoryValue (
<dbl>): The pixel value of the LUC category - categoryName (
<factor>): Randomly created string associated with a given pixel value of a LUC category - color (
<chr>): Random color associated with the given pixel value of a LUC category
Before further analysis, you should customize the Colors: Colors must be in the same order as values in
categoryName and color values:Category Names: Names must be in the same order as categoryValue, and levels should be ordered correctly for legend plotting:categoryValue. Use color names (e.g., “black”) or HEX values (e.g., “#FFFFFF”):A table with the total area of the study area containing 2 columns:
- area_km2 (
<numeric>): The total area in square kilometers - QtPixel (
<numeric>): The total area in pixel counts
Total interval of the analysed time series in years.
Examples
Basic Usage
Customizing Legend
See Also
- intensityAnalysis - Perform intensity analysis on contingency table results
- plot - Visualize intensity analysis results