gplot3d(sna)
gplot3d()所属R语言包:sna
Three-Dimensional Visualization of Graphs
三维可视化图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
gplot3d produces a three-dimensional plot of graph g in set dat. A variety of options are available to control vertex placement, display details, color, etc.
gplot3d产生一个三维图的的图g设置dat。可控制顶点的位置,显示细节,颜色等多种选择
用法----------Usage----------
gplot3d(dat, g = 1, gmode = "digraph", diag = FALSE,
label = NULL, coord = NULL, jitter = TRUE, thresh = 0,
mode = "fruchtermanreingold", displayisolates = TRUE,
displaylabels = !missing(label), xlab = NULL, ylab = NULL,
zlab = NULL, vertex.radius = NULL, absolute.radius = FALSE,
label.col = "gray50", edge.col = "black", vertex.col = NULL,
edge.alpha = 1, vertex.alpha = 1, edge.lwd = NULL, suppress.axes = TRUE,
new = TRUE, bg.col = "white", layout.par = NULL)
参数----------Arguments----------
参数:dat
a graph or set thereof. This data may be valued.
其图形或一组。这个数据可能受到重视。
参数:g
integer indicating the index of the graph (from dat) which is to be displayed.
整数,指示这是要显示的图形(从dat)的索引。
参数:gmode
string indicating the type of graph being evaluated. "digraph" indicates that edges should be interpreted as directed; "graph" indicates that edges are undirected;"twomode" indicates that data should be interpreted as two-mode (i.e., rows and columns are distinct vertex sets).
的图表类型的字符串,表示正在评估中。 "digraph"表明边缘应被解释为指示;"graph"表明边缘是无向;"twomode"表示双模式(即,行和列的数据应该被解释为不同的顶点集)。
参数:diag
boolean indicating whether or not the diagonal should be treated as valid data. Set this true if and only if the data can contain loops.
布尔值,表示是否对角线应被视为有效的数据。设置这是真的,当且仅当数据可以包含循环。
参数:label
a vector of vertex labels; setting this to a zero-length string (e.g., "") omits
一个向量的顶点标签,将此项设置为一个零长度的字符串(例如,"")省略
参数:coord
user-specified vertex coordinates, in an NCOL(dat)x3 matrix. Where this is specified, it will override the mode setting.
用户指定的顶点坐标,在一个NCOL(dat)的×3矩阵。这是指定的,,它将覆盖mode。
参数:jitter
boolean; should vertex positions be jittered?
布尔值;顶点位置抖动?
参数:thresh
real number indicating the lower threshold for tie values. Only ties of value >thresh are displayed.
实数,表示领带值的下限阈值。只有价值的关系> thresh被显示出来。
参数:mode
the vertex placement algorithm; this must correspond to a gplot3d.layout function.
顶点的布局算法,这必须对应于一个gplot3d.layout功能。
参数:displayisolates
boolean; should isolates be displayed?
布尔值;菌株显示?
参数:displaylabels
boolean; should vertex labels be displayed?
布尔值;顶点的标签显示?
参数:xlab
X axis label.
X轴的标签。
参数:ylab
Y axis label.
Y轴的标签。
参数:zlab
Z axis label.
Z轴的标签。
参数:vertex.radius
vertex radius, relative to the baseline (which is set based on layout features); may be given as a vector, if radii vary across vertices.
顶点的半径,相对于基线(它被设置基于布局功能);可以给出一个矢量,如果半径不同顶点。
参数:absolute.radius
vertex radius, specified in absolute terms; this may be given as a vector.
指定的顶点半径,就绝对数字而言,这可能是为矢量。
参数:label.col
color for vertex labels; may be given as a vector, if labels are to be of different colors.
颜色为顶点的标签;可以给出一个矢量,如果标签是采用不同的颜色。
参数:edge.col
color for edges; may be given as a vector or adjacency matrix, if edges are to be of different colors.
边缘的颜色;可以给出一个矢量或邻接矩阵,如果边缘是采用不同的颜色。
参数:vertex.col
color for vertices; may be given as a vector, if vertices are to be of different colors. By default, red is used (or red and blue, if gmode=="twomode").
顶点颜色2作为向量,如果顶点是采用不同的颜色,可给予。默认情况下,使用红色(红色和蓝色,:如果gmode=="twomode")。
参数:edge.alpha
alpha (transparency) values for edges; may be given as a vector or adjacency matrix, if edge transparency is to vary.
alpha(透明度)值的边缘;可以给出一个矢量或邻接矩阵,如果边缘的透明度是各不相同。
参数:vertex.alpha
alpha (transparency) values for vertices; may be given as a vector, if vertex transparency is to vary.
alpha(透明度)值的顶点;可以给出一个矢量,如果顶点透明度是有所不同。
参数:edge.lwd
line width scale for edges; if set greater than 0, edge widths are rescaled by edge.lwd*dat. May be given as a vector or adjacency matrix, if edges are to have different line widths.
边缘线的宽度比例,,如果设置边缘宽度大于0,重新调整的edge.lwd*dat。可以给出一个矢量或邻接矩阵,如果边缘是具有不同的线宽度。
参数:suppress.axes
boolean; suppress plotting of axes?
布尔值;抑制绘制的轴?
参数:new
boolean; create a new plot? If new==FALSE, the RGL device will not be cleared prior to adding vertices and edges.
布尔值;创建一个新的图?如果new==FALSE,RGL设备不会被清除之前添加的顶点和边。
参数:bg.col
background color for display.
用于显示的背景颜色。
参数:layout.par
list of parameters to the gplot.layout function specified in mode.
gplot.layout在mode指定的函数的参数列表。
Details
详细信息----------Details----------
gplot3d is the three-dimensional companion to gplot. As with the latter, clever manipulation of parameters can allow for a great deal of flexibility in the resulting display. (Displays produced by gplot3d are also interactive, to the extent supported by rgl.) If vertex positions are not specified directly using coord, vertex layout is determined via one of the various available algorithms. These should be specified via the mode argument; see gplot3d.layout for a full list. User-supplied layout functions are also possible - see the aforementioned man page for details.
gplot3d是三维的同伴gplot。至于后者,巧妙地操纵参数可以使一个很大的灵活性,在显示的结果。 (显示所产生gplot3d也是互动的,支持的rgl的范围内。)如果没有指定顶点位置,直接使用coord,顶点布局决定通过现有的各种算法之一。这些应通过mode参数指定gplot3d.layout的完整列表。用户提供的的布局功能也可能 - 页的详细信息,请参阅上述的人。
Note that where gmode=="twomode", the supplied two-mode graph is converted to bipartite form prior to computing coordinates (assuming it is not in this form already). It may be desirable to use parameters such as vertex.col to differentiate row and column vertices; by default, row vertices are colored red, and column vertices blue.
请注意,在gmode=="twomode",提供了两个模式图转换为偶形式计算坐标(假设它是不以这种形式)。这可能是需要使用的参数,如vertex.col区分的行和列的顶点,默认情况下,行的顶点是红色的,和列顶点蓝色。
值----------Value----------
A three-column matrix containing vertex coordinates
一个三列的矩阵,包含顶点坐标
需要----------Requires ----------
rgl
rgl
(作者)----------Author(s)----------
Carter T. Butts <a href="mailto:buttsc@uci.edu">buttsc@uci.edu</a>
参考文献----------References----------
Wasserman, S. and Faust, K. (1994) Social Network Analysis: Methods and Applications. Cambridge: Cambridge University Press.
参见----------See Also----------
gplot, gplot3d.layout, rgl
gplot,gplot3d.layout,rgl
实例----------Examples----------
## Not run: [#不运行:]
#A three-dimensional grid...[一个三维网格...]
gplot3d(rgws(1,5,3,1,0))
#...rewired...[...重新布线...]
gplot3d(rgws(1,5,3,1,0.05))
#...some more![...更多一些!]
gplot3d(rgws(1,5,3,1,0.2))
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|