agopenSimple(Rgraphviz)
agopenSimple()所属R语言包:Rgraphviz
A function to obtain a Ragraph object
函数获得Ragraph对象,
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function will read in a graphNEL object and create a Ragraph object, returning it for use in other functions. The graph represented by the Ragraph can be laidout in various formats.
此功能将读取graphNEL对象,并创建一个Ragraph对象,返回它在使用其他功能。由Ragraph表示的图可以laidout在各种格式。
用法----------Usage----------
agopenSimple(graph, name, kind = NULL, edgeMode=edgemode(graph),
subGList=list(), recipEdges=c("combined", "distinct"))
参数----------Arguments----------
参数:graph
An object of class graphNEL
一个对象的类graphNEL
参数:name
The name of the Ragraph
Ragraph名称
参数:kind
The type of graph
图表类型
参数:subGList
A list describing subgraphs for the graph parameter
描述子图图参数列表
参数:edgeMode
Whether the graph is directed or undirected
向或无向图
参数:recipEdges
How to handle reciprocated edges, defaults to combined, TODO: use this
如何处理的投桃报李边缘,默认combined,待办事项:使用此
Details
详情----------Details----------
graph is from the package graph-class.
graph是从包graph-class。
The edgeMode argument specifies whether the graph is to be laid out with directed or undirected edges. This parameter defaults to the edgemode of the graph argument.
edgeMode参数指定的图形是否是同向或无向边被解雇。此参数默认为graph参数edgemode。
The kind parameter works as follows:
那种参数的工作原理如下:
NULL: Determine the direction of the graph from the graph
空:确定从graph图的方向
AGRAPH: An undirected graph
AGRAPH:一个无向图
AGDIGRAPH: A directed graph
AGDIGRAPH:一个有向图
AGRAPHSTRICT: A strict undirected graph
AGRAPHSTRICT:严格的无向图
AGDIGRAPHSTRICT: A strict directed graph
AGDIGRAPHSTRICT:一个严格的指示图
Strict graphs do not allow self arcs or multi-edges.
严格的图形不允许自我弧或多边缘的。
The subGList parameter is a list describing any subgraphs, where each element represents a subgraph and is itself a list with up to three elements. The first element, graph is required and contains the actual graph object for the subgraph. The second element, cluster is a logical value indicating if this is a cluster or a subgraph (a value of TRUE indicates a cluster, which is also the default value if this element is not specified). In Graphviz, subgraphs are more of an organizational mechanism, whereas clusters are laid out separately from the main graph and then later inserted. The last element of the list, attrs is used if there are any attributes for this subgraph. This is a named vector where the names are the attributes and the elements are the values for those attributes.
subGList参数是一个列表,说明任何子图,其中每个元素代表一个子图,本身就是一个具有三个要素列表。第一个元素,graph是必需的,包含实际的graph为子对象。第二个元素,cluster表示,如果这是一个cluster或subgraph(的TRUE价值的表示集群,这也是默认值,如果是一个逻辑值此元素没有指定)。在Graphviz的子图是一个组织的机制,而集群奠定了分别从主图和后来插入。列表的最后一个元素,attrs使用此子,如果有任何属性。这是一个命名为向量的名称的属性和元素是这些属性的值。
The recipEdges argument can be used to specify how to handle reciprocal edges. The default value, combined will combine any reciprocated edges into a single edge (and if the graph is directed, will by default place an arrowhead on both ends of the edge), while the other option is distinct which will draw to separate edges. Note that in the case of an undirected graph, every edge of a graphNEL is going to be reciprocal due to implementation issues.
recipEdges参数可用于指定如何处理相互边缘。默认值,combined将合并成一个单一的边缘任何往复边缘(图指示,如果将默认位置上的边缘两端的箭头),而其他选项是distinct这将绘制单独的边缘。注意:在一个无向图的情况下,每graphNEL优势要因执行问题是相互的。
值----------Value----------
An object of class Ragraph
一个对象的类Ragraph
作者(S)----------Author(s)----------
Li Long <li.long@isb-sib.ch>
参考文献----------References----------
<h3>See Also</h3> <code>graphLayout</code>,
举例----------Examples----------
set.seed(123)
V <- letters[1:10]
M <- 1:4
g1 <- randomGraph(V, M, .2)
z <- agopenSimple(g1,name="foo")
if(graphvizVersion() >= "2.10") {
## This example will only run with Graphviz >= 2.10[#这个例子将只运行Graphviz的> = 2.10]
plot(z, "twopi")
}
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|