Apply kernel smoothing to the sf geometry of a ggseg_atlas object.
Higher smoothness values produce rounder region boundaries.
This avoids re-running the full atlas creation pipeline.
Arguments
- atlas
A
ggseg_atlasobject with sf data.- smoothness
Smoothing bandwidth passed to smoothr::smooth(method = "ksmooth"). Typical range 3–15. Default 5.
Examples
if (FALSE) { # \dontrun{
atlas <- atlas_smooth(my_atlas, smoothness = 10)
plot(atlas)
} # }