gpc2owin
From spatstat v1.33-0
by Adrian Baddeley
Convert Polygonal Region into Different Format
Conversion between the different
representations of a polygonal region
in the packages
Usage
gpc2owin(x)
owin2gpc(x)
Arguments
- x
- Object representing a polygonal region.
An object of class
"owin"
in thespatstat package (forowin2gpc
) or an object of class"gpc.poly"
in thegpclib package (forgpc2owin
Details
The packages "gpc.poly"
, while in "owin"
and of type "polygonal"
.
These two functions convert the two formats: owin2gpc
converts
an "owin"
to a "gpc.poly"
, while gpc2owin
does the reverse.
Conversion of a "gpc.poly"
to an "owin"
can also be
performed by calling as.owin
.
Value
- An object of class
"owin"
in thespatstat package (forgpc2owin
) or an object of class"gpc.poly"
in thegpclib package (forowin2gpc
).
See Also
Examples
data(letterR)
if(spatstat.options("gpclib") && require(gpclib)) {
R <- owin2gpc(letterR)
L <- gpc2owin(R)
} else cat("gpclib is not available
")
Community examples
Looks like there are no examples yet.