locator(graphics)
locator()所属R语言包:graphics
Graphical Input
图形输入
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Reads the position of the graphics cursor when the (first) mouse button is pressed.
(一)鼠标按钮被按下时读取图形光标的位置。
用法----------Usage----------
locator(n = 512, type = "n", ...)
参数----------Arguments----------
参数:n
the maximum number of points to locate. Valid values start at 1.
定位点的最大数量。有效值从1开始。
参数:type
One of "n", "p", "l" or "o". If "p" or "o" the points are plotted; if "l" or "o" they are joined by lines.
一个"n","p","l"或"o"。如果"p"或"o"点绘制;如果"l"或"o"他们是由行加入。
参数:...
additional graphics parameters used if type != "n" for plotting the locations.
额外的图形使用的参数,如果type != "n"绘制的位置。
Details
详情----------Details----------
locator is only supported on screen devices such as X11, windows and quartz. On other devices the call will do nothing.
locator只支持屏幕设备,如X11,windows和quartz。在其他设备上调用不会做任何事情。
Unless the process is terminated prematurely by the user (see below) at most n positions are determined.
除非该进程被终止由用户(见下文)过早n最位置确定。
The identification process can be terminated by clicking the second button and selecting "Stop" from the menu, or from the "Stop" menu on the graphics window.
鉴定过程中,可以通过点击第二个按钮,从菜单中选择,或从图形窗口的菜单上的一站式的一站式终止。
The current graphics parameters apply just as if plot.default has been called with the same value of type. The plotting of the points and lines is subject to clipping, but locations outside the current clipping rectangle will be returned.
当前图形应用的参数,就像plot.default一直用相同的值称为type。绘制点和线,裁剪,但将返回当前的剪贴矩形以外的地点。
On most devices which support locator, successful selection of a point is indicated by a bell sound unless options(locatorBell=FALSE) has been set.
在大多数设备支持locator的,选择一个点的成功表示除非options(locatorBell=FALSE)已成立由钟声。
If the window is resized or hidden and then exposed before the input process has terminated, any lines or points drawn by locator will disappear. These will reappear once the input process has terminated and the window is resized or hidden and exposed again. This is because the points and lines drawn by locator are not recorded in the device's display list until the input process has terminated.
如果窗口大小或隐藏起来,然后暴露在输入过程中已终止之前,locator绘制的任何线条或点会消失。这些将再次出现一次输入过程中已终止和调整窗口的大小或隐藏,再次暴露。这是因为的点locator的画线不记录在设备的显示列表中,直到输入进程已经终止。
值----------Value----------
A list containing x and y components which are the coordinates of the identified points in the user coordinate system, i.e., the one specified by par("usr").
列表包含x和y组件是用户坐标系统,即由par("usr")指定的鉴定点的坐标。
参考文献----------References----------
The New S Language. Wadsworth & Brooks/Cole.
参见----------See Also----------
identify.
identify。
dev.capabilities to see if it is supported.
dev.capabilities,看它是否支持。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|