landscape <- terra::rast(landscapemetrics::landscape)
# get circle around each patch
get_circumscribingcircle(landscape)
# get circle around whole class
get_circumscribingcircle(landscape, level = "class")
Run the code above in your browser using DataLab