xsplinePoints(grid)
xsplinePoints()所属R语言包:grid
Return the points that would be used to draw an Xspline.
返回将用于绘制Xspline点。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Rather than drawing an Xspline, this function returns the points that would be used to draw the series of line segments for the Xspline. This may be useful to post-process the Xspline curve, for example, to clip the curve.
而非绘制Xspline,这个函数返回点,将用于为Xspline绘制一系列的线段。这可能是有用的,后处理的Xspline曲线,例如,裁剪曲线。
用法----------Usage----------
xsplinePoints(x)
参数----------Arguments----------
参数:x
An Xspline grob, as produced by the xsplineGrob() function.
一个Xspline GROB,由xsplineGrob()函数产生的。
Details
详情----------Details----------
The points returned by this function will only be relevant for the drawing context in force when this function was called.
这个函数返回的点只会有此功能时,被称为有效的绘图上下文相关的。
值----------Value----------
Depends on how many Xsplines would be drawn. If only one, then a list with two components, named x and y, both of which are unit objects (in inches). If several Xsplines would be drawn then the result of this function is a list of lists.
取决于多少Xsplines将绘制。如果只有一个,然后命名为x和y,这两个单位的对象(英寸)两部分组成,名单。如果几个Xsplines将被绘制,那么这个函数的结果是一个列表。
作者(S)----------Author(s)----------
Paul Murrell
参见----------See Also----------
xsplineGrob
xsplineGrob
举例----------Examples----------
grid.newpage()
xsg <- xsplineGrob(c(.1, .1, .9, .9), c(.1, .9, .9, .1), shape=1)
grid.draw(xsg)
trace <- xsplinePoints(xsg)
grid.circle(trace$x, trace$y, default.units="inches", r=unit(.5, "mm"))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|