identify.lintess: Interactively Identify Tiles of a Tessellation on a Network

View source: R/lintess.R

identify.lintessR Documentation

Interactively Identify Tiles of a Tessellation on a Network

Description

If a tessellation on a linear network is plotted in the graphics window, then each time the left mouse button is pressed, this function will find the tile which contains the mouse position, print the serial number of the tile, and draw the tile in a different colour.

Usage

  ## S3 method for class 'lintess'
identify(x, ..., labels=seq_len(nobjects(x)),
                             n=nobjects(x), plot=TRUE)

Arguments

x

A tessellation on a linear network (object of class "lintess").

...

Arguments passed to identify.default.

labels

Labels associated with the tiles of the tessellation, to be plotted when the tiles are identified. A character vector or numeric vector of length equal to the number of tiles of x.

n

Maximum number of tiles to be identified.

plot

Logical. Whether to plot the labels when a tile is identified.

Details

This is a method for the generic function identify for tessellations on a linear network.

The tessellation x, or the underlying network, should first be plotted using plot.lintess or plot.linnet.

Then identify(x) reads the position of the graphics pointer each time the left mouse button is pressed. It then determines which tile of x contains the mouse position. The index of this tile will be returned as part of the value of the call.

Each time a tile is identified, text will be displayed alongside the tile showing its serial number, and the tile will be re-drawn in a different colour.

Value

A vector containing the serial numbers of the tiles of x that were identified.

Author(s)

\spatstatAuthors

.

See Also

identify, plot.lintess


spatstat/spatstat.linnet documentation built on June 1, 2025, 6:17 p.m.