Learn R Programming

geostatsp (version 0.7.0)

as.im: Convert a raster to an im object

Description

Conversion between rasters and spatstat's im objects

Usage

as.im(X, ...)
	## S3 method for class 'RasterLayer':
as.im(X,...)

Arguments

X
A RasterLayer or an object acceptable to as.im.
...
additional arguments

Examples

Run this code
myraster = raster(matrix(1:100,10,10),
	xmn=0,xmx=10,ymn=0,ymx=10)
myIm = as.im(myraster)

Run the code above in your browser using DataLab