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

R语言 sna包 gplot.vertex()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 10:53:12 | 显示全部楼层 |阅读模式
gplot.vertex(sna)
gplot.vertex()所属R语言包:sna

                                         Add Vertices to a Plot
                                         添加顶点的图

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

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

gplot.vertex adds one or more vertices (drawn using polygon) to a plot.
gplot.vertex添加一个或多个顶点(画polygon)的图。


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


gplot.vertex(x, y, radius = 1, sides = 4, border = 1, col = 2,
    lty = NULL, rot = 0, ...)



参数----------Arguments----------

参数:x
a vector of x coordinates.
的矢量的x坐标。


参数:y
a vector of y coordinates.
的y坐标的矢量。


参数:radius
a vector of vertex radii.
一个向量的顶点半径。


参数:sides
a vector containing the number of sides to draw for each vertex.
为每个顶点画一个向量,包含的边数。


参数:border
a vector of vertex border colors.
一个向量的顶点边框的颜色。


参数:col
a vector of vertex interior colors.
一个向量的顶点内饰颜色。


参数:lty
a vector of vertex border line types.
一个向量的顶点边界线类型。


参数:rot
a vector of vertex rotation angles (in degrees).
一个向量的顶点的旋转角度(单位:度)。


参数:...
Additional arguments to polygon
额外的参数polygon


Details

详细信息----------Details----------

gplot.vertex draws regular polygons of specified radius and number of sides, at the given coordinates.  This is useful for routines such as gplot, which use such shapes to depict vertices.
gplot.vertex指定的半径和边数,在给定的坐标绘制正多边形。这是非常有用的例程,如gplot,其中使用这样的形状描绘顶点。


值----------Value----------

None



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


Carter T. Butts <a href="mailto:buttsc@uci.edu">buttsc@uci.edu</a>



参见----------See Also----------

gplot, polygon
gplot,polygon


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



#Open a plot window, and place some vertices[打开一个绘图窗口,并把一些点]
plot(0,0,type="n",xlim=c(-1.5,1.5),ylim=c(-1.5,1.5),asp=1)
gplot.vertex(cos((1:10)/10*2*pi),sin((1:10)/10*2*pi),col=1:10,
    sides=3:12,radius=0.1)


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-6 14:05 , Processed in 0.033689 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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