Learn R Programming

xROI (version 0.1.1)

drawPolygon: Interactive drawing of a polygon

Description

This function provides an interactive tool for drawing of polygons by user clicks on the plot

Usage

drawPolygon(col = "#80303080", lty = 1, ...)

Arguments

col

color value of the polygon polygon

lty

lty variable as line type

...

passing graphical parameters tp

Examples

Run this code
# 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