Landscape metrics in R software

Without a reprex only general guidance can be offered. See the FAQ: How to do a minimal reproducible example reprex for beginners.

library(landscapemetrics)
library(landscapetools)

# landscape raster is a ggplot object
class(show_landscape(landscape))

# therefore, it can be saved using ggsave

ggplot2::ggsave(file = "land.tiff")

1 Like