Function Signature
Description
Plot methods forIntensity objects based on Intensity Analysis output. The plot() function is an S4 method with specialized implementations for three different object types: Interval, Category, and Transition.
Each plot type visualizes a different level of the intensity analysis, creating publication-ready graphics that help interpret land use and cover change patterns.
Methods
Interval Level Plot
Category Level Plot
Transition Level Plot
Parameters
An intensity object generated by
intensityAnalysis(). The type of object determines which plot method is called:Intervalobject: plots interval level analysisCategoryobject: plots category level analysis (gain or loss)Transitionobject: plots transition level analysis (gain or loss)
Ignored. Included for S4 method compatibility.
Left and right axis titles (captions). Provide as a named vector:
leftlabel: Title for the left axis (typically area values)rightlabel: Title for the right axis (typically intensity values)
Main title for the plot. If
NA (default), no title is displayed.Legend labels. Provide as a named vector:
type: Label for the category/change type legendur: Label for the uniform intensity reference line
Adjustment of the origins of left and right parts of the plots. Provide as a named vector:
lh: Left margin adjustment (in points)rh: Right margin adjustment (in points)
X and Y values that control the arrow size and position pointing to the Uniform Intensity vertical line. Provide as a named vector:
x: Horizontal offset for the arrow endpointy: Vertical offset for the arrow endpoint
c(x = 0.1, y = 0.1)Colors defined for the fast, slow, and area bars. Only applicable for Interval objects. Provide as a named vector:
fast: Color for fast change intervals (default:"#B22222"- firebrick red)slow: Color for slow change intervals (default:"#006400"- dark green)area: Color for area bars (default:"gray40")
Font size of the uniform intensity percentage label in the plot.
Additional arguments passed to
ggplot2::theme() for further plot customization. See ggplot2::theme() documentation for available options.Return Value
Returns an intensity graph as agrid object, which is automatically displayed. The plot uses ggplot2 and gridExtra for rendering.
Examples
Plotting Interval Level Analysis
Plotting Category Level Analysis
Plotting Transition Level Analysis
Advanced Customization with ggplot2 Theme
Understanding the Plots
Interval Level Plots
Interval level plots show:- Left panel: Total change area for each time interval
- Right panel: Annual intensity of change with a uniform intensity reference line
- Colors: Fast (above uniform) vs. slow (below uniform) change rates
Category Level Plots
Category level plots show:- Left panel: Gross gain or loss area for each category
- Right panel: Annual intensity of gain or loss with uniform intensity reference
- Facets: Separate panels for each time interval
- Colors: Category-specific colors from the legend
Transition Level Plots
Transition level plots show:- Left panel: Transition area to/from the target category
- Right panel: Transition intensity with uniform intensity reference
- Facets: Separate panels for each time interval
- Interpretation: Categories above the uniform line are “targeted” or “targeting”; those below are “avoided” or “avoiding”
See Also
- intensityAnalysis - Generate the intensity objects to plot
- contingencyTable - Create the input data for intensity analysis