make_polygons: Create polygon from mapped points

Description Usage Arguments Value Examples

Description

Create a new polygon from the coordinates of mapped points

Usage

1
make_polygons(r, my_end, poly_name = "unspecified", loop_r)

Arguments

r

integer specifying the region of current interest

my_end

n x 2 list of mapped points, i.e. the points to which the polygon should extend

poly_name

character string to name the new polygon (defaults to "unspecified")

loop_r

boolean indicating whether the points are going in a loop

Value

SpatialPolygons object created from the mapped points

Examples

1
2
new_poly <- make_polygons(r = 5, my_end = mappedPoints, loop_r = FALSE)
plot(new_poly)

IceCast documentation built on June 24, 2019, 9:03 a.m.