gpc.to.Polygons(wild1)
gpc.to.Polygons()所属R语言包:wild1
Construct "gpc.poly" from "Polygons"
构建“gpc.poly”,“多边形”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Package wild1 uses objects of class "Polygons"{sp} to represent home ranges of animals. Functions gpc.to.Poly and Poly.to.gpc facilitate conversion to/from classes "gpc.poly"{gpclib} and "Polygons." Package gpclib can be used to find unions, intersections, and differences for objects of class "gpc.poly."
套件wild1使用对象的类“Polygons{sp}来表示动物的活动范围。功能gpc.to.Poly和Poly.to.gpc方便转换到/从班“gpc.poly”{gpclib}“的Polygons。”包装gpclib可用于找到工会,十字路口,不同类的对象的“gpc.poly。”
用法----------Usage----------
gpc.to.Polygons(x, ID = NA)
Polygons.to.gpc(x)
参数----------Arguments----------
参数:x
An object of class "gpc.poly" or "Polygons"
一个类的对象“gpc.poly”或“Polygons”
参数:ID
A character vector of length one; see Polygons
字符向量的长度为一Polygons
Details
详细信息----------Details----------
These functions requires sp and gpclib. The latter is subject to license restrictions and is not free for commercial use.
这些功能需要sp和gpclib。后者是受牌照限制,不用于商业用途。
值----------Value----------
Returns an object of class "gpc.poly" or "Polygons"
返回类的一个对象“gpc.poly”或“Polygons。”
(作者)----------Author(s)----------
Glen A. Sargeant<br>
U.S. Geological Survey<br>
Northern Prairie Wildlife Research Center<br>
<a href="mailto:glen_sargeant@usgs.gov">glen_sargeant@usgs.gov</a>
参考文献----------References----------
Bivand, R. S., E. J. Pebesma, and V. Gomez-Rubio, 2008. Applied spatial data analysis with R. Springer, NY. <http://www.asdar-book.org/>
Pebesma, E.J., R.S. Bivand, 2005. Classes and methods for spatial data in R. R News 5 (2). <http://cran.r-project.org/doc/Rnews/>
Roger D. Peng with contributions from Duncan Murdoch and Barry Rowlingson; GPC library by Alan Murta. gpclib: General Polygon Clipping Library for R. <http://CRAN.R-project.org/package=gpclib>
参见----------See Also----------
kde, ks, plot.Polygons, sp
kde,ks,plot.Polygons,sp
实例----------Examples----------
require(gpclib)
data(wica.gpc)
class(wica.gpc)
data(xy.elk)
mcp.poly <- hr.mcp(xy.elk)
class(mcp.poly)
mcp.gpc <- Polygons.to.gpc(mcp.poly)
class(mcp.gpc)
mcp.inwica.gpc <- intersect(wica.gpc,mcp.gpc)
class(mcp.inwica.gpc)
mcp.inwica.poly <- gpc.to.Polygons(mcp.inwica.gpc)
data(wica.bdy)
plot(wica.bdy,col="gray")
plot(mcp.inwica.poly,fg="tan",add=TRUE,lty=2)
plot(mcp.poly,lty=2,add=TRUE)
box()
xy.inwica <- restrict.domain(x=xy.elk,domain=wica.bdy,plot=FALSE)
points(xy.inwica$inside$coords,pch=21,bg="salmon")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|