powered by
This function provides an interactive tool for drawing of polygons by user clicks on the plotted graphics
drawPolygon(col = "#80303080", lty = 1, ...)
a character string, color value of the polygon polygon
a numeric value, lty variable as line type
passing graphical arguments
the coodinates of the clicked points
# NOT RUN { #user can click to add vertices, pressing the Escape key would end it. if(interactive()){ drawPolygon() } # }
Run the code above in your browser using DataLab