clickbox

0th

Percentile

Interactively Define a Rectangle

Allows the user to specify a rectangle by point-and-click in the display.

Keywords
spatial, iplot
Usage
clickbox(add=TRUE)
Arguments
add
Logical value indicating whether to create a new plot (add=FALSE) or draw over the existing plot (add=TRUE).
Details

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

The user is prompted to point the mouse at any desired locations for two corners of the rectangle, and click the left mouse button to add each point.

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

This function uses the Rcommand locator to input the mouse clicks. It only works on screen devices such as X11, windows and quartz.

Value

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

See Also

clickpoly, clickppp, locator

Aliases
  • clickbox
Documentation reproduced from package spatstat, version 1.37-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.