Hey #spatial #R folks, is it possible to extract geometries from #ggplot as files? That is, the point, line, and polygon geometries in the graphs to #geopackage or #shapefile etc.

It is possible with #seaborn and #matplotlib, but that's Python not R. There's a nice and lightning fast #EdgeBundling technique in the newest ggplot, which is very promising for the #visualization of massive #mobility data.

There is also something in #HoloViews but I do not understand that library at all.

@waeiski I think R people able to help will be in #rstats or #rSpatial. I don't know much about extrating geometries, but ggplot is not for simple feature manipulation. These packages might be better for it: https://github.com/rspatial
Good luck!
rspatial

The R packages terra, luna, raster, geosphere and friends. See "github.com/r-spatial" for "sf" c.s. - rspatial

GitHub