Learn R Programming

lgcp (version 1.8)

as.im.fromFunction: as.im.fromFunction function

Description

Convert an object of class fromFunction(created by spatialAtRisk for example) into a spatstat im object.

Usage

# S3 method for fromFunction
as.im(X, xyt, M = 100, N = 100, ...)

Arguments

X

an object of class fromSPDF

xyt

and objects of class stppp

M

number of cells in x direction

N

number of cells in y direction

...

additional arguments

Value

object of class im containing normalised intensities

See Also

as.im.fromXYZ, as.im.fromSPDF, as.im.fromFunction, as.fromXYZ