as.tess: Convert Data To Tessellation

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/tess.R

Description

Converts data specifying a tessellation, in any of several formats, into an object of class "tess".

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 as.tess(X)
 ## S3 method for class 'tess'
as.tess(X)
 ## S3 method for class 'im'
as.tess(X)
 ## S3 method for class 'owin'
as.tess(X)
 ## S3 method for class 'quadratcount'
as.tess(X)
 ## S3 method for class 'list'
as.tess(X)

Arguments

X

Data to be converted to a tessellation.

Details

A tessellation is a collection of disjoint spatial regions (called tiles) that fit together to form a larger spatial region. This command creates an object of class "tess" that represents a tessellation.

This function converts data in any of several formats into an object of class "tess" for use by the spatstat package. The argument X may be

The function as.tess is generic, with methods for various classes, as listed above.

Value

An object of class "tess" specifying a tessellation.

Author(s)

\adrian

and \rolf

See Also

tess

Examples

1
2
3
4
5
6
7
8
 # pixel image
 v <- as.im(function(x,y){factor(round(5 * (x^2 + y^2)))}, W=owin())
 levels(v) <- letters[seq(length(levels(v)))]
 as.tess(v)
 # quadrat counts
 data(nztrees)
 qNZ <- quadratcount(nztrees, nx=4, ny=3)
 as.tess(qNZ)

spatstat.geom documentation built on March 22, 2021, 9:09 a.m.