Description Usage Arguments Value Examples
This function provides an interactive tool for drawing of polygons by user clicks on the plotted graphics
1 | drawPolygon(col = "#80303080", lty = 1, ...)
|
col |
a character string, color value of the polygon polygon |
lty |
a numeric value, lty variable as line type |
... |
passing graphical arguments |
the coodinates of the clicked points
1 2 3 4 | #user can click to add vertices, pressing the Escape key would end it.
if(interactive()){
drawPolygon()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.