graphLayout(hyperdraw)
graphLayout()所属R语言包:hyperdraw
Layout a graph.
布局图形。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function is designed to layout a graph using the Rgraphviz package. The hyperdraw package makes this a generic function with a method for graphBPH objects. The function of the same name in the Rgraphviz package is used as a method for Ragraph objects.
此功能设计的布局图,使用Rgraphviz包。 hyperdraw包graphBPH对象的方法使这是一个通用函数。的Rgraphviz包名称相同的功能,使用作为Ragraph对象的方法。
用法----------Usage----------
graphLayout(graph, layoutType, ...)
参数----------Arguments----------
参数:graph
An graphBPH object, which is to be laid out.
一个graphBPH的对象,这是被解雇了。
参数:layoutType
The layout method (e.g., dot or neato).
布局方法(例如,dot或neato)。
参数:...
These arguments will be passed to the agopen() function.
这些参数将被传递给agopen()功能。
值----------Value----------
An RagraphBPH object.
RagraphBPH对象。
作者(S)----------Author(s)----------
Paul Murrell
参考文献----------References----------
An open graph visualization system and its applications to software engineering, Software - Practice and Experience, 30:1203–1233.
Hahne, F. and Sarkar, D. and Hansen, K. <code>Rgraphviz</code>: Provides plotting capabilities for R graph objects.
参见----------See Also----------
agopen and GraphvizLayouts
agopen和GraphvizLayouts
举例----------Examples----------
nodes <- c(LETTERS[1:5], paste("R", 1:3, sep=""))
testgnel <- new("graphNEL",
nodes=nodes,
edgeL=list(
A=list(edges=c("R1", "R2")),
B=list(edges="R2"),
C=list(),
D=list(edges="R3"),
E=list(),
R1=list(edges="B"),
R2=list(edges=c("C", "D")),
R3=list(edges="E")),
edgemode="directed")
testbph <- new("graphBPH", testgnel, "^R")
testrabph <- graphLayout(testbph)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|