roundrect(shape)
roundrect()所属R语言包:shape
adds a rounded rectangular box to a plot
添加一个圆角矩形框的地积
译者:生物统计家园网 机器人LoveR
描述----------Description----------
adds a rectangular box with rounded left and right edges to a plot
添加一个矩形框具有圆形的左边缘和右边缘的一个图
用法----------Usage----------
roundrect(mid, radx, rady, rx = rady, dr = 0.01,
col = "white", lcol = "black", lwd = 2, angle = 0, ...)
参数----------Arguments----------
参数:mid
midpoint (x,y) of the box.
中点(的x,y)的方块。
参数:radx
horizontal radius of the box.
盒子的水平半径。
参数:rady
vertical radius of the box.
垂直半径的方块。
参数:rx
radius of rounded part.
半径的圆的一部分。
参数:dr
size of segments, in radians, to draw the rounded line (decrease for smoother).
段的大小,弧度,画的圆润线条流畅的(减少)。
参数:col
fill color of the box.
填充颜色的方块。
参数:lcol
line color surrounding box.
线的颜色周围的框。
参数:lwd
line width of line surrounding the box.
周围的框的线的线宽。
参数:angle
rotation angle, degrees.
旋转角(度)。
参数:...
arguments passed to function filledshape.
参数传递功能filledshape。
Details
详细信息----------Details----------
radx and rady are the horizontal and vertical radiusses of the box; rx is the horizontal radius of the rounded part.
radx和rady的方块的水平和垂直的radiusses;rx是水平的圆形部分的半径。
Here horizontal and vertical denote the position BEFORE rotation.
这是horizontal和vertical表示旋转前的位置。
(作者)----------Author(s)----------
Karline Soetaert <karline.soetaert@nioz.nl>
实例----------Examples----------
emptyplot(c(-0.1, 1.1), main = "roundrect")
for (i in 1:10)
roundrect(mid = runif(2), col = i, radx = 0.1, rady = 0.05)
for (i in 1:5)
roundrect(mid = runif(2), col = greycol(20), radx = 0.05,
rady = 0.05, angle = runif(1)*360)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|