找回密码
 注册
查看: 270|回复: 0

R语言 shape包 textflag()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 01:55:05 | 显示全部楼层 |阅读模式
textflag(shape)
textflag()所属R语言包:shape

                                         adds a filled rounded rectangular box with a text to a plot
                                         添加填充圆角矩形的文本框的地积

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

adds a rectangular box with rounded left and right edges to a plot
添加一个矩形框具有圆形的左边缘和右边缘的一个图


用法----------Usage----------


textflag(mid, radx, rady, rx = rady, dr = 0.01,
         col = femmecol(100), lcol = "white",
         bcol = lcol, lwd = 2, angle = 0, lab = NULL,
         leftright = TRUE,...)



参数----------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; the box will be filled from left to right.  
填充颜色的方块,由左到右框将被填补。


参数:lcol
line color surrounding box.  
线的颜色周围的框。


参数:bcol
line color to remove the ellipse from the rectangular box.  
线的颜色删除椭圆的矩形框。


参数:lwd
line width of line surrounding the box.  
周围的框的线的线宽。


参数:angle
rotation angle, degrees.  
旋转角(度)。


参数:lab
one label or a vector string of labels to be added in box.  
盒中加入一个标签或标签一个向量的字符串。


参数:leftright
if TRUE then coloring is from left to right  else the coloring is from bottom to top box (for angle = 0).  
如果TRUE然后着色的色素是从左至右其他是从下到机顶盒(angle= 0)。


参数:...
arguments passed to function text.  
参数传递给函数的文本。


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表示旋转前的位置。

This function is similar to function roundrect, except that coloring  is from left to right.
此函数类似于运作roundrect,除了着色是从左至右。


(作者)----------Author(s)----------


Karline Soetaert <karline.soetaert@nioz.nl>



实例----------Examples----------


emptyplot()
textflag(mid = c(0.5, 0.5), radx = 0.5, rady = 0.1,
         lcol = "white",  lab = "hello", cex = 5, font = 2:3)

textflag(mid = c(0.5, 0.15), radx = 0.5, rady = 0.1,
         rx = 0.3,lcol = "black", lab = "hello 2", cex = 4,
         font = 2, angle = 20)
  
textflag(mid = c(0.5, 0.85), radx = 0.5, rady = 0.1, rx = 0.03,
         lcol = "white", lab = "hello 3", cex = 4, font = 2,
         leftright = FALSE)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-21 19:35 , Processed in 0.026428 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表