drawPolygon: Interactive drawing of a polygon

Description Usage Arguments Value Examples

Description

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

Usage

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

Arguments

col

a character string, color value of the polygon polygon

lty

a numeric value, lty variable as line type

...

passing graphical arguments

Value

the coodinates of the clicked points

Examples

1
2
3
4
#user can click to add vertices, pressing the Escape key would end it.
if(interactive()){
   drawPolygon()
}

xROI documentation built on June 2, 2021, 9:07 a.m.