Need help to create polygon in Rstudio

Hi Everyone,
I am trying to create polygons from the point data set. But failed many times. I have lon, lat and x and y values within the data set.
Could you please give me some idea (with an example would be much appreciated) how to create polygons from point data set or what command should I use?
many thanks in advance.

regards,
Naveen

Take a look at the ggforce package.
Lots of ways to make polygons.
start with the geom_shape() function

1 Like

I'm not sure what you've tried already, but for GIS type tasks, I would look at the sf package: https://r-spatial.github.io/sf/

1 Like

Thanks, for the reply.
it works :smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.