export layer of core areas
Closed this issue · 2 comments
zuranojp commented
Hi folks, could you help me to export as raster the core areas showed with "show_core" function. I have use spatialize function, but this show the core area of a patch without the cores boundary.
thank Juan
mhesselbarth commented
Have a look at get_boundaries
, I think thats what you are looking for...
library(landscapemetrics)
library(terra)
#> terra 1.6.7
class_1 <- get_patches(landscape, class = 1)[[1]]
boundaries <- get_boundaries(class_1)
plot(boundaries[[1]], col = c("#6ad5e8", "#a62f00"))
Created on 2022-08-26 with reprex v2.0.2
zuranojp commented
Thank you very much for your response @mhesselbarth . It works very well for what I need
Cheers Juan