R: Point and Click Interface for Displaying Spatial Data

iplot {spatstat} | R Documentation

## Point and Click Interface for Displaying Spatial Data

### Description

Plot spatial data with interactive (point-and-click) control over the plot.

### Usage

     iplot(x, ...)

     ## S3 method for class 'ppp'
    iplot(x, ..., xname)

     ## S3 method for class 'linnet'
    iplot(x, ..., xname)

     ## S3 method for class 'lpp'
    iplot(x, ..., xname)

     ## S3 method for class 'layered'
    iplot(x, ..., xname, visible)

     ## Default S3 method:
    iplot(x, ..., xname)

### Arguments

`x` | The spatial object to be plotted. An object of class `"ppp"`, `"psp"`, `"im"`, `"owin"`, `"linnet"`, `"lpp"` or `"layered"`.
`...` | Ignored.
`xname` | Optional. Character string to use as the title of the dataset.
`visible` | Optional. Logical vector indicating which layers of `x` should initially be turned on (visible).

### Details

The function `iplot` generates a plot of the spatial dataset `x` and allows interactive control over the appearance of the plot using a point-and-click interface.

The function `iplot` is generic, with methods for for point patterns (`iplot.ppp`), layered objects (`iplot.layered`) and a default method. The default method will handle objects of class `"psp"`, `"im"` and `"owin"` at least.

A new popup window is launched. The spatial dataset `x` is displayed in the middle of the window using the appropriate `plot` method.

The left side of the window contains buttons and sliders allowing the user to change the plot parameters.

The right side of the window contains navigation controls for zooming (changing magnification), panning (shifting the field of view relative to the data), redrawing and exiting.

If the user clicks in the area where the point pattern is displayed, the field of view will be re-centred at the point that was clicked.

### Value

`NULL`.

### Package Dependence

This function requires the package rpanel to be loaded.

### Author(s)

Adrian Baddeley Adrian.Baddeley@curtin.edu.au

and Rolf Turner r.turner@auckland.ac.nz

### See Also

`istat`

### Examples

       if(interactive() && require(rpanel)) {
          iplot(cells)
          iplot(amacrine)
          iplot(lansing)
          L <- layered(D=distmap(cells), P=cells,
                plotargs=list(list(ribbon=FALSE), list(pch=16)))
          iplot(L)
       }

[Package spatstat version 1.63-3 Index]