Learn R Programming

migraph (version 0.7.1)

ggraphgrid: Plot graph to grid

Description

For quick and easy graphing of networks to a grid plot

Usage

ggraphgrid(x, algorithm = c("kk", "fr"))

Arguments

x

A migraph-consistent network/graph

algorithm

An initial network layout, currently either Kamada-Kawai ("kk") or Fruchterman-Reingold ("fr")

Details

The function uses approximate pattern matching to redistributes the coarse layouts on the square grid points, while preserving the topological relationships among the nodes (see Inoue et al. 2012).

References

Inoue et al. (2012). Application of Approximate Pattern Matching in Two Dimensional Spaces to Grid Layout for Biochemical Network Maps. PLoS One 7 (6): e37739. doi: https://doi.org/10.1371/journal.pone.0037739.

Examples

Run this code
# NOT RUN {
ggraphgrid(mpn_elite_mex)
ggraphgrid(mpn_elite_usa_advice)
ggraphgrid(mpn_elite_usa_money)
ggraphgrid(mpn_ryanair)
# }

Run the code above in your browser using DataLab