Learn R Programming

gridGraphviz (version 0.3-1)

graphWidth: Get width/height of an Ragraph object

Description

These functions will return the width or height of an Rgraphviz Ragraph object in inches.

Usage

graphWidth(graph)
graphHeight(graph)

Arguments

graph

a laidout Ragraph object

Value

A numeric vector of length 1.

References

graphviz

See Also

Ragraph

Examples

Run this code
# NOT RUN {
gnel <- new("graphNEL",
            nodes=letters[1:3],
            edgeL=list(a=list(edges=c("b", "c")),
                       b=list(),
                       c=list()),
            edgemode="directed")
rag <- agopenTrue(gnel, "")
graphWidth(rag)
graphHeight(rag)
# }

Run the code above in your browser using DataLab