as.SpatialPolygons.tess

0th

Percentile

Coercion of spatstat tess object to sp SpatialPolygons object

This function coerces spatstats tessellation objects of class tess to sps SpatialPolygons class. S4-style as() coercion works as well.

Keywords
spatial
Usage
as.SpatialPolygons.tess(x)
Arguments
x

spatstat object of class tess to coerce from

Methods

coerce

signature(from = "tess", to = "SpatialPolygons")

Aliases
  • as.SpatialPolygons.tess
  • coerce,tess,SpatialPolygons-method
Examples
# NOT RUN {
run <- FALSE
if (require(spatstat, quietly=TRUE)) run <- TRUE
if (run) {
A <- tess(xgrid=0:4,ygrid=0:4)
A_sp <- as(A, "SpatialPolygons")
plot(A_sp)
text(coordinates(A_sp), labels=row.names(A_sp), cex=0.6)
}
# }
Documentation reproduced from package maptools, version 0.9-8, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.