as.linim

0th

Percentile

Convert to Pixel Image on Linear Network

Converts various kinds of data to a pixel image on a linear network.

Keywords
manip, spatial
Usage
as.linim(X, …)

# S3 method for linim as.linim(X, …)

# S3 method for default as.linim(X, L, …)

Arguments
X

Data to be converted to a pixel image on a linear network.

L

Linear network (object of class "linnet").

Additional arguments passed to X when X is a function, or arguments passed to as.mask which determine the pixel array geometry.

Details

This function converts the data X into a pixel image on a linear network, an object of class "linim" (see linim).

The argument X may be any of the following:

  • a pixel image on a linear network, an object of class "linim".

  • a pixel image, an object of class "im".

  • any type of data acceptable to as.im, such as a function, numeric value, or window.

First X is converted to a pixel image object Y (object of class "im"). The conversion is performed by as.im using any relevant arguments specified in . For example the argument eps could be used to change the pixel resolution.

Next Y is converted to a pixel image on a linear network using linim. The argument L determines the linear network. If L is missing or NULL, then X should be an object of class "linim", and L defaults to the linear network on which X is defined.

Value

An image object on a linear network; an object of class "linim".

See Also

as.im

Aliases
  • as.linim
  • as.linim.linim
  • as.linim.default
Examples
# NOT RUN {
  f <- function(x,y){ x + y }
  plot(as.linim(f, simplenet))
# }
Documentation reproduced from package spatstat, version 1.49-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.