Overview
ThechordDiagramLand() function creates circular chord diagrams to visualize one-step land use and cover (LUC) transitions between two time points. Chord diagrams are ideal for showing the magnitude and direction of transitions in a compact, circular layout.
Function Signature
Parameters
A table of one-step transitions (
lulc_Onestep) generated by contingencyTable().A table containing the LUC legend items and their respective colors (
tb_legend).A named vector containing the
x and y coordinates for the legend position.The title displayed above the legend.
The color of the external sector arcs that contain the year labels.
If
TRUE, transitions are shown in km²; if FALSE, in pixel counts.Font size multiplier for the legend text.
Character interspacing factor for vertical spacing in the legend.
Additional horizontal space (blank area) on the left or right of the circle for the legend. Passed to
circlize::circos.par() as canvas.xlim.Return Value
Creates a chord diagram plot showing:- Circular sectors representing land use categories at two time points
- Ribbons (chords) connecting categories, showing transitions
- Ribbon width proportional to transition area
- Directional arrows indicating the flow direction
- Year labels on external arcs
Usage Examples
Basic Chord Diagram
Customizing Legend Position
Adjust legend placement for better visibility:Adjusting Canvas Margins
Provide more space for the legend:Custom Sector Color
Change the color of the year arc sectors:Saving Chord Diagrams
Chord diagrams are base R graphics. Save using standard R graphics devices:Interpretation Guide
- Sector size: Proportional to the total area of each category at each time point
- Ribbon width: Proportional to the transition area from one category to another
- Ribbon color: Matches the source category color
- Arrows: Indicate the direction of change from source to target
- Outer labels: Category names at each time point
- Outer arcs: Year labels showing the time period
Chord diagrams work best for one-step transitions. For multi-step analysis, use
sankeyLand() instead.Advanced Customization
Using Pixel Counts Instead of Area
See Also
- sankeyLand - Alternative Sankey diagram visualization
- netgrossplot - Net and gross change comparison
- Visualization Guide - Complete visualization workflow