Learn R Programming

terra (version 0.2-6)

draw: Draw a line, polygon, extent, or points

Description

Draw on a plot (map) to get a SpatVector or SpatExtent object for later use. After calling the function, start clicking on the map. To finish, right-click and select 'stop'.

Usage

drawPol(col="red", lwd=2, ...)
drawLin(col="red", lwd=2, ...)
drawPts(col="red", lwd=2, ...)
drawExt(col="red", lwd=2, ...)

Arguments

col

the color of the lines to be drawn

lwd

the width of the lines to be drawn

...

additional arguments padded to locator

Value

SpatVector or SpatExtent

See Also

locator