Reduce vertex count in the sf geometry of a ggseg_atlas object using
Douglas-Peucker simplification. Higher tolerance values produce simpler
shapes with fewer vertices. This avoids re-running the full atlas creation
pipeline.
Arguments
- atlas
A
ggseg_atlasobject with sf data.- tolerance
Simplification tolerance passed to sf::st_simplify(dTolerance). Typical range 0.1–2. Default 0.5.
Examples
if (FALSE) { # \dontrun{
atlas <- atlas_simplify(my_atlas, tolerance = 1)
plot(atlas)
} # }