You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get concaveman to work with a matrix of spatial (numeric) coordinates, e.g. like mat <- matrix(c(c(1,1),c(3,1),c(2,4)), ncol=2). How can I make this work?
In the description it is stated "points can be represented as a matrix of coordinates", but not that these points cannot be numeric or how to convert them.
I came upon your package via the ggforce package, which does a great job in plotting my points with the concave hull, but I don't know how to extract the computed points.
The text was updated successfully, but these errors were encountered:
JolleJolles
changed the title
Use of spatial coordinates
Use of numeric coordinates
May 1, 2020
I found that the following command helps to get the right data for concaveman from a dataframe with x,y data: dat_sf <- st_as_sf(data,c("x","y")], coords = c("x", "y"), crs = 28992), but any further clarifications would be appreciated.
I am trying to get concaveman to work with a matrix of spatial (numeric) coordinates, e.g. like
mat <- matrix(c(c(1,1),c(3,1),c(2,4)), ncol=2)
. How can I make this work?In the description it is stated "points can be represented as a matrix of coordinates", but not that these points cannot be numeric or how to convert them.
I came upon your package via the ggforce package, which does a great job in plotting my points with the concave hull, but I don't know how to extract the computed points.
The text was updated successfully, but these errors were encountered: