Learn R Programming

lgcp (version 1.3-8)

as.im.fromSPDF: as.im.fromSPDF function

Description

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

Usage

## S3 method for class 'fromSPDF':
as.im(X, ncells = 100, ...)

Arguments

X
an object of class fromSPDF
ncells
number of cells to divide range into; default 100
...
additional arguments

Value

  • object of class im containing normalised intensities

See Also

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