Overview
ThebarplotLand() function creates a grouped bar plot showing the areas of land use and cover (LUC) categories at each time point in the analyzed period. This visualization helps track how category extents change over time.
Function Signature
Parameters
A table of multi-step transitions (
lulc_Multistep) generated by contingencyTable().A table containing the LUC legend items and their respective colors (
tb_legend).The title of the plot. Use
NULL for no title.The caption/title for the legend.
Label for the x-axis.
Label for the y-axis.
If
TRUE, areas are shown in km²; if FALSE, in pixel counts.Additional theme parameters passed to
ggplot2::theme(). Use this to customize plot appearance.Return Value
Returns a ggplot2 bar plot object showing:- X-axis: Time points (years)
- Y-axis: Area (km² or pixel count)
- Grouped bars: One bar per category at each time point
- Color coding: Based on the legend table
Usage Examples
Basic Bar Plot
With Custom Labels and Title
Using Pixel Counts
Advanced Customization
Custom ggplot2 Theme
Use the... parameter to pass additional theme customization:
Combining with ggplot2 Layers
Since the function returns a ggplot2 object, you can add additional layers:Saving the Plot
As a ggplot2 object, save usingggsave():
Interpretation Guide
Reading the Plot
- Each year has a group of bars, one per category
- Bar height represents the area of that category at that time point
- Color identifies the category (from legend table)
- Changes over time are visible by comparing bars of the same color across years
Example Analysis
This plot shows the state (area) of each category at each time point, not the transitions between them. For transition visualization, use
sankeyLand() or chordDiagramLand().Comparison with Other Plots
| Plot Type | Shows | Best For |
|---|---|---|
barplotLand() | Category areas at each time point | Tracking category extent over time |
netgrossplot() | Net vs. gross change totals | Understanding change magnitude and direction |
sankeyLand() | Transitions between categories | Visualizing flows and transitions |
chordDiagramLand() | One-step transitions | Compact visualization of bidirectional flows |
See Also
- netgrossplot - Net and gross change visualization
- sankeyLand - Transition flow diagrams
- Visualization Guide - Complete visualization workflow