clickpoly

0th

Percentile

Interactively Define a Polygon

Allows the user to create a polygon by point-and-click in the display.

Keywords
spatial, iplot
Usage
clickpoly(add=FALSE, n=NULL, ...)
Arguments
add
Logical value indicating whether to create a new plot (add=FALSE) or draw over the existing plot (add=TRUE).
n
Number of vertices of the polygon (if this is predetermined).
...
Arguments passed to locator to control the interactive plot.
Details

This function allows the user to create a polygonal window by interactively clicking on the screen display.

The user is prompted to point the mouse at any desired locations for the polygon vertices, and click the left mouse button to add each point. Interactive input stops after n clicks (if n was given) or when the middle mouse button is pressed.

The return value is a window (object of class "owin") representing the polygon.

This function uses the R

Value

  • A window (object of class "owin") representing the polygon.

code

par

sQuote

  • X11
  • windows
  • quartz

See Also

identify.ppp, clickppp, locator

Aliases
  • clickpoly
Documentation reproduced from package spatstat, version 1.11-7, License: GPL version 2 or newer

Community examples

Looks like there are no examples yet.