Learn R Programming

spatstat.explore (version 3.7-0)

transect.im: Pixel Values Along a Transect

Description

Extract the pixel values of a pixel image at each point along a linear transect.

Usage

transect.im(X, ..., from="bottomleft", to="topright",
            nsample=512, click=FALSE, add=FALSE, curve=NULL)

Arguments

Value

An object of class "fv" which can be plotted.

Details

The pixel values of the image X along a line segment will be extracted. The result is a function table ("fv" object) which can be plotted directly.

If click=TRUE, then the user is prompted to click two points on the plot of X. These endpoints define the transect.

Otherwise, the transect is defined by the endpoints from and to. The default is a diagonal transect from bottom left to top right of the frame.

See Also

im

Examples

Run this code
  Z <- bei.extra$elev
  plot(transect.im(Z))

Run the code above in your browser using DataLab