Draw multiple polygon on a nativeRaster
image
nr_polygon(nr, x, y, id = NULL, fill = "black", color = NA)
nativeRaster
Vectors of point coordinates
integer vector used to separate coordinates into
multiple polygons. Consecutive runs of the same id
value belong to the same polygon. If NULL (the default) then
all coordinates are assumed to be vertices of a single polygon.
fill color
Color as a character string. Either a standard R color
(e.g. 'blue', 'white')
or a hex color of the form #rrggbbaa
, #rrggbb
, #rgba
or #rgb
Original nativeRaster
modified in-place