Skip to contents

Creates a basic ggplot2 visualization of a landscape object.

Usage

# S3 method for class 'landscape'
plot(x, ...)

Arguments

x

A landscape object created by landscape.

...

Additional arguments passed to ggplot2 functions.

Value

A ggplot2 object representing the landscape data.

Details

This function creates a minimal ggplot2 visualization of the landscape raster data. The returned plot can be further customized by adding ggplot2 elements or by using the plot_landscape function for higher-level customization.

Examples

# Create a landscape
mat <- matrix(1:100, 10, 10)
l <- landscape(mat, pattern = "test", name = "example")

# Get basic plot
p <- plot(l)

# Add your own customization
p + ggplot2::ggtitle("My custom title") +
    ggplot2::theme_dark()