Draw a polygon, line, extent, or points
Draw on a plot (map) to get a SpatVector or SpatExtent object for later use. After calling the function, start clicking on the map. When you are done, press ESC
. You can also preset the maximum number of clicks.
## S4 method for signature 'character' draw(x="extent", col="red", lwd=2, id=FALSE, n=1000, ...)
x |
character. The type of object to draw. One of "extent", "polygon", "line", or "points" |
col |
the color to be used |
lwd |
the width of the lines to be drawn |
id |
logical. If |
n |
the maximum number of clicks (does not apply when |
... |
additional graphics arguments for drawing |
SpatVector or SpatExtent
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.