#rstats #rspatial and other #geospatial folks, I am pleased to announce the {centerline} package! It's a small but powerful tool that can find a centerline of closed polygons.
It has both {terra} and {sf} support and works pretty well, as far as its maintainer (i.e., me) sees. The very first devel version is out, and I'm curious to hear any feedback. Its even doesn't have any logo yet
https://github.com/atsyplenkov/centerline
GitHub - atsyplenkov/centerline: An R package to retrieve the centerline of polygons

An R package to retrieve the centerline of polygons - atsyplenkov/centerline

GitHub
@atsyplenkov Looks very cool! And you seem to use the latest features of ggplot2 to make a text follow a line! Isn't this similar or the same that @tylermorganwall was showing recently with https://github.com/tylermorganwall/raybevel ?
GitHub - tylermorganwall/raybevel: 3D Bevels, Rooftops, Inset Polygons, and Straight Skeletons in R

3D Bevels, Rooftops, Inset Polygons, and Straight Skeletons in R - GitHub - tylermorganwall/raybevel: 3D Bevels, Rooftops, Inset Polygons, and Straight Skeletons in R

GitHub
@Lluis_Revilla cheers, mate. I haven't seen the @tylermorganwall package yet. {raybevel} looks way more promising and sophisticated! Regarding the text location, I've just used {geomtextpath} package which is here for years
@Lluis_Revilla I just took a closer look at the {raybevel}package and the skeleton algorithm implemented there may be very useful and more robust than the voronoi polygons I used. Thanks for the heads up!