plot.linim

0th

Percentile

Plot Pixel Image on Linear Network

Given a pixel image on a linear network, the pixel values are displayed either as colours or as line widths.

Keywords
spatial
Usage
# S3 method for linim
plot(x, ..., style = c("colour", "width"),
             scale, adjust = 1,
             do.plot=TRUE)
Arguments
x

The pixel image to be plotted. An object of class "linim".

Extra graphical parameters, passed to plot.im if style="colour", or to polygon if style="width".

style

Character string specifying the type of plot. See Details.

scale

Physical scale factor for representing the pixel values as line widths.

adjust

Adjustment factor for the default scale.

do.plot

Logical value indicating whether to actually perform the plot.

Details

This is the plot method for objects of class "linim". Such an object represents a pixel image defined on a linear network.

If style="colour" (the default) then the pixel values of x are plotted as colours, using plot.im.

If style="width" then the pixel values of x are used to determine the widths of thick lines centred on the line segments of the linear network.

Value

An (invisible) window (class "owin") containing the area that will be plotted, including the colour ribbon.

References

Ang, Q.W., Baddeley, A. and Nair, G. (2012) Geometrically corrected second-order analysis of events on a linear network, with applications to ecology and criminology. Scandinavian Journal of Statistics 39, 591--617.

See Also

linim, plot.im, polygon

Aliases
  • plot.linim
Examples
# NOT RUN {
  X <- linfun(function(x,y,seg,tp){y^2+x}, simplenet)
  X <- as.linim(X)
  
  plot(X)
  plot(X, style="width")
# }
Documentation reproduced from package spatstat, version 1.49-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.