Convert Polygonal Region into Different Format
多边形区域转换成不同的格式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Conversion between the different representations of a polygonal region in the packages spatstat and gpclib.
软件包中的一个多边形区域的不同表示之间的转换spatstat和gpclib。
用法----------Usage----------
gpc2owin(x)
owin2gpc(x)
参数----------Arguments----------
参数:x
Object representing a polygonal region. An object of class "owin" in the spatstat package (for owin2gpc) or an object of class "gpc.poly" in the gpclib package (for gpc2owin).
对象,表示一个多边形区域。类的一个对象"owin"spatstat包(owin2gpc)或类的一个对象"gpc.poly"gpclib包(gpc2owin )。
Details
详细信息----------Details----------
The packages spatstat and gpclib have slightly different internal formats for representing a polygonal region in the two-dimensional plane. In gpclib a polygonal region is an object of class "gpc.poly", while in spatstat it is an object of class "owin" and of type "polygonal".
该软件包spatstat和gpclib具有略微不同的内部格式,用于表示在二维平面上的多边形区域。在gpclib的多边形的区域是类的一个对象"gpc.poly",而在spatstat它是一个对象的类"owin"和类型"polygonal"。
These two functions convert the two formats: owin2gpc converts an "owin" to a "gpc.poly", while gpc2owin does the reverse.
这两个函数转换的格式有两种:owin2gpc转换为"owin"到"gpc.poly",而gpc2owin则相反。
Conversion of a "gpc.poly" to an "owin" can also be performed by calling as.owin.
一个"gpc.poly"到"owin"的转换也可以通过调用as.owin。
值----------Value----------
An object of class "owin" in the spatstat package (for gpc2owin) or an object of class "gpc.poly" in the gpclib package (for owin2gpc).
类的一个对象"owin"spatstat包(gpc2owin)或类的一个对象"gpc.poly"gpclib包(owin2gpc )。
(作者)----------Author(s)----------
Adrian Baddeley
<a href="mailto:Adrian.Baddeley@csiro.au">Adrian.Baddeley@csiro.au</a>
<a href="http://www.maths.uwa.edu.au/~adrian/">http://www.maths.uwa.edu.au/~adrian/</a>
and Rolf Turner
<a href="mailto:r.turner@auckland.ac.nz">r.turner@auckland.ac.nz</a>
参见----------See Also----------
as.owin
as.owin
实例----------Examples----------
data(letterR)
if(spatstat.options("gpclib") && require(gpclib)) {
R <- owin2gpc(letterR)
L <- gpc2owin(R)
} else cat("gpclib is not available\n")