Last chance! 50% off unlimited learning
Sale ends in
"tess"
.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 'quadrattest':
as.tess(X)
## S3 method for class 'list':
as.tess(X)
"tess"
specifying a tessellation."tess"
that
represents a tessellation. This function converts data in any of several formats
into an object of class "tess"
for use by the X
may be
"tess"
.
The object will be stripped of any extraneous attributes
and returned."im"
) with pixel values that
are logical or factor values. Each level of the factor will
determine a tile of the tessellation."owin"
). The result will be a
tessellation consisting of a single tile."quadratcount"
)
returned by the commandquadratcount
.
The quadrats
used to generate the counts will be extracted and returned as a
tessellation."quadrattest"
)
returned by the commandquadrat.test
.
The quadrats
used to perform the test will be extracted and returned as a
tessellation."owin"
)
giving the tiles of the tessellation.as.tess
is generic, with methods for
various classes, as listed above.tess
# 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)
Run the code above in your browser using DataLab