powered by
This function provides an interactive tool for drawing of polygons by user clicks on the plot
drawPolygon(col = "#80303080", lty = 1, ...)
color value of the polygon polygon
lty variable as line type
passing graphical parameters tp
# 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