agopenTrue {gridGraphviz} | R Documentation |
A function to obtain a laidout Ragraph
object
Description
This function is a wrapper for the Rgraphviz function
agopen
and will produce a laidout Ragraph
object with
layout more true to the result produced by graphviz.
Usage
agopenTrue(graph, name, nodes, edges, kind = NULL, layoutType = "dot",
attrs = list(), nodeAttrs = list(), edgeAttrs = list(),
subGList = list(), edgeMode = edgemode(graph),
recipEdges = c("combined", "distinct"))
Arguments
graph |
An object of class |
nodes |
A list of |
edges |
A list of |
name |
The name of the graph |
kind |
The type of graph |
layoutType |
Defines the layout engine. Defaults to dot, and see
|
attrs |
A list of graphviz attributes |
nodeAttrs |
A list of specific node attributes |
edgeAttrs |
A list of specific edge attributes |
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
|
Details
As of Rgraphviz
version 2.2.1 (2013-01-31) agopen
:
Produces graphs of the same size as the current device, or at a default size of 7x7 inches.
Forces nodes to fixed default height and width.
Does not pass through edge weight information.
This function returns an Ragraph
object with graph
and node sizes set by graphviz or by the user. It also ensures
edge weight information is passed through.
Value
An object of class Ragraph
Author(s)
Ashley Noel Hinton
References
graphviz
See Also
Examples
gnel <- new("graphNEL",
nodes=letters[1:3],
edgeL=list(a=list(edges=c("b", "c")),
b=list(),
c=list()),
edgemode="directed")
rag <- agopenTrue(gnel, "")
grid.graph(rag)