spatstat (version 1.11-8)

clickpoly: Interactively Define a Polygon

Description

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

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.

Value

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

code

par

sQuote

  • X11
  • windows
  • quartz

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

See Also

identify.ppp, clickppp, locator