create_polygon_df | R Documentation |
polygon_df
object from the given coordinatescode using polygon_df
should not assume that the first and last point
within each id are the same. i.e. they may have to manulaly set a final
point equal to the initial point if that is what their graphics system
desires
create_polygon_df(x, y, id = 1L)
x , y |
coordinates of polygon. not necessarily closed. |
id |
a numeric vector used to separate locations in x,y into multiple polygons |
data.frame with x, y, id columns.
df <- create_polygon_df(x = c(0, 0, 1, 1), y = c(0, 1, 1, 0))
is_polygon_df(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.