shift.ppp(spatstat)
shift.ppp()所属R语言包:spatstat
Apply Vector Translation To Point Pattern
应用矢量转换为点模式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Applies a vector shift to a point pattern.
应用向量转移到一个点模式。
用法----------Usage----------
## S3 method for class 'ppp'
shift(X, vec=c(0,0), ..., origin=NULL)
参数----------Arguments----------
参数:X
Point pattern (object of class "ppp").
点模式(类的对象"ppp")。
参数:vec
Vector of length 2 representing a translation.
矢量长度为2翻译。
参数:...
Ignored
忽视
参数:origin
Character string determining a location that will be shifted to the origin. Options are "centroid", "midpoint" and "bottomleft". Partially matched.
字符串判定的位置,将被转移到原点。选项"centroid","midpoint"和"bottomleft"。部分匹配。
Details
详细信息----------Details----------
The point pattern, and its window, are translated by the vector vec.
点模式,和其窗口的,均按向量vec。
This is a method for the generic function shift.
这是一个方法的通用函数shift。
If origin is given, then it should be one of the character strings "centroid", "midpoint" or "bottomleft". The argument vec will be ignored; instead the shift will be performed so that the specified geometric location is shifted to the origin. If origin="centroid" then the centroid of the window will be shifted to the origin. If origin="midpoint" then the centre of the bounding rectangle of the window will be shifted to the origin. If origin="bottomleft" then the bottom left corner of the bounding rectangle of the window will be shifted to the origin.
origin如果是给定的,那么它应该是一个字符串的"centroid","midpoint"或"bottomleft"。 vec的参数将被忽略,而不是将执行移位,转移到指定的几何位置的起源。如果origin="centroid"然后在窗口的质心将被转移到原点的。如果origin="midpoint"窗口的边界矩形的中心将转移到原点的。如果origin="bottomleft"然后在左下角的窗口的边框将被转移到原点的。
值----------Value----------
Another point pattern (of class "ppp") representing the result of applying the vector shift.
还有一点,的模式(类"ppp")应用矢量移位的结果。
(作者)----------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----------
shift, shift.owin, periodify, rotate, affine
shift,shift.owin,periodify,rotate,affine
实例----------Examples----------
data(cells)
X <- shift(cells, c(2,3))
## Not run: [#不运行:]
plot(X)
# no discernible difference except coordinates are different[没有明显的差异是不同的,除了坐标]
## End(Not run)[#(不执行)]
plot(cells, pch=16)
plot(shift(cells, c(0.03,0.03)), add=TRUE)
shift(cells, origin="mid")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|