perimeter(sampSurf)
perimeter()所属R语言包:sampSurf
Function to Return the Graphical Perimeter of an Object in
函数来返回一个对象的图形周长
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Most classes in the sampSurf package have some kind of spatial representation that conforms to a class in sp (for polygons) or raster (for grids). This generic has been defined to return graphical polygon object that most nearly matches the perimeter. For some objects this means returning the bounding box for, perhaps, a collection of logs, or for a “Tract” object.
sampSurf包中的大多数类有某种空间表示符合一类sp(多边形)或raster(网格)。这个通用已经被定义为返回的图形,几乎可以与周边的多边形对象。对于某些对象,这意味着返回的边框,或许,收集log,或为一个“道”的对象。
用法----------Usage----------
perimeter(object, ...)
参数----------Arguments----------
参数:object
Signature object, which differs for each method.
Signature对象,不同的每个方法。
参数:...
See methods.
请参见方法。
Details
详细信息----------Details----------
The methods defined for this generic are described in perimeter-methods. The function is quite simple, and works essentially the same for each type of object. Again, some leeway in exactly what is returned is taken because we can have individual objects, collections, or grid rather than polygonal objects. In the latter two cases, the perimeter normally would be the minimal bounding box. For other objects in classes that have a well-defined perimeter, such as a downLog, or a circular plot, these are returned. One can always plot their bounding box separately with the help of
这个通用的方法定义中描述的perimeter-methods。该功能是非常简单的,工作原理基本上是相同的,每种类型的对象。同样,一些余地,因为我们可以有单独的对象,集合,或网格而不是多边形物体到底是什么返回。在后两种情况下,通常会在周边的最小边界框。对于其他对象的类,有一个定义良好的周长,如downLog,或一个圆形的图,这些返回。一个人可以单独绘制它们的边界框的帮助下,
值----------Value----------
A "SpatialPolygons" object that can be plotted directly.
A“SpatialPolygons”对象,可以直接绘制。
(作者)----------Author(s)----------
Jeffrey H. Gove
参见----------See Also----------
bbox
bbox
实例----------Examples----------
showMethods("perimeter")
dlogs = downLogs(15, xlim=c(0,20), ylim=c(0,20), buttDiams=c(25,35))
dlogs.perim = perimeter(dlogs)
plot(dlogs.perim, axes=TRUE)
plot(dlogs, add=TRUE)
bbox(dlogs.perim)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|