landscape <- terra::rast(landscapemetrics::landscape)
# show "global" core area
show_cores(landscape, class = "global", labels = FALSE)
# show the core area of every class as facet
show_cores(landscape, class = "all", labels = FALSE)
# show only the core area of class 1 and 3
show_cores(landscape, class = c(1, 3), labels = TRUE)
Run the code above in your browser using DataLab