clickpoly(spatstat)
clickpoly()所属R语言包:spatstat
Interactively Define a Polygon
以交互方式定义的多边形
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Allows the user to create a polygon by point-and-click in the display.
允许用户创建一个多边形,点和单击显示。
用法----------Usage----------
clickpoly(add=FALSE, nv=NULL, np=1, ...)
参数----------Arguments----------
参数:add
Logical value indicating whether to create a new plot (add=FALSE) or draw over the existing plot (add=TRUE).
逻辑值,该值指示是否要创建一个新的绘图(add=FALSE)或绘制在现有的图(add=TRUE)。
参数:nv
Number of vertices of the polygon (if this is predetermined).
多边形顶点的数量(如果这是预定的)。
参数:np
Number of polygons to create.
创建的多边形数。
参数:...
Arguments passed to locator to control the interactive plot.
参数传递给locator控制的互动图。
Details
详细信息----------Details----------
This function allows the user to create a polygonal window by interactively clicking on the screen display.
此功能允许用户创建交互点击在屏幕上显示的多边形窗口。
The user is prompted to point the mouse at any desired locations for the polygon vertices, and click the left mouse button to add each point. Interactive input stops after nv clicks (if nv was given) or when the middle mouse button is pressed.
会提示用户将鼠标指向任何所需的多边形顶点的位置,然后单击鼠标左键,添加每个点。交互输入后nv点击(如果nv),或按下鼠标中键时,停止。
The return value is a window (object of class "owin") representing the polygon.
返回值是一个窗口(对象的类"owin")的多边形。
This function uses the R command locator to input the mouse clicks. It only works on screen devices such as "X11", "windows" and "quartz". Arguments that can be passed to locator through ... include pch (plotting character), cex (character expansion factor) and col (colour). See locator and par.
这个函数使用R命令locator的鼠标点击输入。它仅适用于屏幕设备,如“X11”,“窗口”和“石英”。参数,可以传递给locator通过...包括pch(绘制字符),cex(字符膨胀系数)和col(彩色)。见locator和par。
Multiple polygons can also be drawn, by specifying np > 1. The polygons must be disjoint. The result is a single window object consisting of all the polygons.
多个多边形,也可以得出,由指定np > 1。多边形必须是不相交的。其结果是一个的单个窗口对象组成的所有的多边形。
值----------Value----------
A window (object of class "owin") representing the polygon.
一个窗口(对象的类"owin")的多边形。
(作者)----------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----------
identify.ppp, clickppp, locator
identify.ppp,clickppp,locator
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|