as.rectangle(spatstat)
as.rectangle()所属R语言包:spatstat
Window Frame
窗框
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Extract the window frame of a window or other spatial dataset
提取的窗口框架窗口或其他空间数据集
用法----------Usage----------
as.rectangle(w, ...)
参数----------Arguments----------
参数:w
A window, or a dataset that has a window. Either a window (object of class "owin"), a pixel image (object of class "im") or other data determining such a window.
一个窗口,有一个窗口的数据集。无论是窗口(类的对象"owin"),一个像素的图像(类的对象"im")或其他数据确定这样的一个窗口。
参数:...
Optional. Auxiliary data to help determine the window. If w does not belong to a recognised class, the arguments w and ... are passed to as.owin to determine the window.
可选。辅助数据,以帮助确定窗口。 w如果不属于公认的类,参数w和...传递给as.owin,以确定窗口。
Details
详细信息----------Details----------
This function is the quickest way to determine a bounding rectangle for a spatial dataset.
这个函数是最快捷的方法来确定的矩形边框的空间数据集。
If w is a window, the function just extracts the outer bounding rectangle of w as given by its elements xrange,yrange.
如果w是一个窗口,该函数提取的外边界矩形w作为它的元素xrange,yrange。
The function can also be applied to any spatial dataset that has a window: for example, a point pattern (object of class "ppp") or a line segment pattern (object of class "psp"). The bounding rectangle of the window of the dataset is extracted.
该功能也可以被应用到任何空间数据集具有一个窗口:例如,类的对象的点图案("ppp")或类的对象的线段图案("psp")。提取的数据集的窗口的边框。
Use the function bounding.box to compute the smallest bounding rectangle of a dataset.
使用的功能bounding.box计算的数据集的最小矩形。
值----------Value----------
A window (object of class "owin") of type "rectangle" representing a rectangle.
一个窗口(类的对象"owin")类型"rectangle"代表一个矩形。
(作者)----------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----------
owin, as.owin, bounding.box
owin,as.owin,bounding.box
实例----------Examples----------
w <- owin(c(0,10),c(0,10), poly=list(x=c(1,2,3,2,1), y=c(2,3,4,6,7)))
r <- as.rectangle(w)
# returns a 10 x 10 rectangle[返回一个10×10的矩形]
data(lansing)
as.rectangle(lansing)
data(copper)
as.rectangle(copper$SouthLines)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|