Create a customizable plot of a landscape object with options for titles, legends, and display preferences.
Arguments
- landscape
A landscape object to plot.
- title
Character. Controls the plot title: - "name": uses only the landscape name - "pattern": uses only the landscape pattern - "both": uses "name (pattern)" format - "none": no title - Any other string: used as-is as a custom title Default: "pattern"
- show_legend
Logical. Whether to show legend (default: TRUE).
- legend_title
Character. Title for the legend (default: "Value").
See also
Other visualization:
plot_classified_landscapes(),
plot_landscape_list(),
plot_metrics()
Examples
# Create a basic landscape
l <- create_landscape("sharp", width = 50, height = 50)
# Default plot (shows both name and pattern)
plot_landscape(l)
# Show only pattern name
plot_landscape(l, title = "pattern")
# Custom title and legend
plot_landscape(l,
title = "My Sharp Treeline",
legend_title = "Vegetation",
show_legend = TRUE)