grid.graph: Draw a Node-and-Edge Graph

Description Usage Arguments Author(s) References Examples

Description

Take a description of the layout of a graph, as produced by the Rgraphviz package, and draw it.

Usage

1
grid.graph(rag, newpage = FALSE, nodesOnTop = TRUE)

Arguments

rag

An Ragraph object (must be laid out).

newpage

Logical value indicating whether to draw the graph on a new page.

nodesOnTop

Logical value indicating whether nodes should be drawn after edges (or vice versa).

Author(s)

Paul Murrell

References

graphviz

Examples

1
2
3
4
5
6
7
8
gnel <- new("graphNEL",
            nodes=letters[1:3],
            edgeL=list(a=list(edges=c("b", "c")),
                       b=list(),
                       c=list()),
            edgemode="directed")
rag <- agopen(gnel, "")
grid.graph(rag)

Example output

Loading required package: grid
Loading required package: graph
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, cbind, colMeans, colSums, colnames, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, lengths, mapply, match, mget, order, paste, pmax, pmax.int,
    pmin, pmin.int, rank, rbind, rowMeans, rowSums, rownames, sapply,
    setdiff, sort, table, tapply, union, unique, unsplit, which,
    which.max, which.min

Loading required package: Rgraphviz

gridGraphviz documentation built on May 2, 2019, 2:44 a.m.