Description
TheCategory class is an S4 class that stores the results of Intensity Analysis at the Category level. This is the second level of intensity analysis, which examines how the size and intensity of gross losses and gross gains in each category vary across categories for each time interval.
Class Definition
Slots
The colors associated with the LUC legend items. Each element should be a color code (e.g., “#FFE4B5”) with the category name as the name attribute.
A table of Category level results containing either gain (Gtj) or loss (Lti) values.Must be a tibble with exactly 6 columns (format depends on whether analyzing Gain or Loss).
A table containing results of a stationarity test. A change is considered stationary only if the intensities for all time intervals reside on one side of the uniform intensity.Must be a tibble with exactly 5 columns.
Slot Details
For Gain Analysis
categoryData (6 columns):- Period (
<fct>): The period [Yt, Yt+1] - To (
<fct>): A LUC category j - Interval (
<int>): Duration of the period [Yt, Yt+1] in years - GG_km2 or GG_pixel (
<dbl>or<int>): Area of gross gain of category j during [Yt, Yt+1] - Gtj (
<dbl>): Annual intensity of gross gain of category j for time interval [Yt, Yt+1] - St (
<dbl>): Annual intensity of change for time interval [Yt, Yt+1]
- To (
<fct>): A category of interest j - gain (
<int>): Number of times a category had gains during all time intervals [Y1, YT] - N (
<int>): Total number of evaluated time points (T) - Stationarity (
<chr>): Active Gain or Dormant Gain - Test (
<chr>): Y if stationarity was detected and N if not
For Loss Analysis
categoryData (6 columns):- Period (
<fct>): The period [Yt, Yt+1] - From (
<fct>): A LUC category i - Interval (
<int>): Duration of the period [Yt, Yt+1] in years - GL_km2 or GL_pixel (
<dbl>or<int>): Area of gross loss of category i during [Yt, Yt+1] - Lti (
<dbl>): Annual intensity of gross loss of category i for time interval [Yt, Yt+1] - St (
<dbl>): Annual intensity of change for time interval [Yt, Yt+1]
- From (
<fct>): A category of interest i - loss (
<int>): Number of times a category had losses during all time intervals [Y1, YT] - N (
<int>): Total number of evaluated time points (T) - Stationarity (
<chr>): Active Loss or Dormant Loss - Test (
<chr>): Y if stationarity was detected and N if not
Example Object
Here’s an example of aCategory object for gain analysis from the São Lourenço Basin dataset:
Details
Category Level Analysis
The Category level answers the question: “Which categories are experiencing intensive gains or losses?”- Gtj (Gain Intensity): Annual intensity of gross gain for category j
- Lti (Loss Intensity): Annual intensity of gross loss for category i
- St (Annual Intensity): Overall annual intensity of change for the time interval
- If Gtj > St: Category j is gaining more intensively than the overall rate
- If Lti > St: Category i is losing more intensively than the overall rate
Stationarity Testing
The stationarity test determines whether a category’s behavior is consistent across time:- Active Gain/Loss: Intensities are consistently above the uniform rate
- Dormant Gain/Loss: Intensities are consistently below the uniform rate
- Test = Y: The pattern is stationary (consistent across all intervals)
- Test = N: The pattern is not stationary (varies across intervals)
Plotting
TheCategory class has a dedicated plot method:
See Also
Interval- S4 class for Interval level analysisTransition- S4 class for Transition level analysisintensityAnalysis()- Function that creates Category objectsplot()- Method for visualizing Category objects