Learn R Programming

migraph (version 0.8.13)

layouts: Layouts for one- and two-mode networks

Description

Layouts for one- and two-mode networks

Usage

layout_tbl_graph_frgrid(object, circular = FALSE, maxiter = 1000)

layout_tbl_graph_kkgrid(object, circular = FALSE, maxiter = 1000)

layout_tbl_graph_gogrid(object, circular = FALSE, maxiter = 1000)

Arguments

object

A migraph-consistent network/graph

circular

Should the layout be transformed into a radial representation. Only possible for some layouts. Defaults to FALSE

maxiter

maximum number of iterations, where appropriate

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 {
autographr(mpn_elite_mex, "frgrid")
autographr(mpn_ryanair, "frgrid")
autographr(mpn_elite_mex, "kkgrid")
autographr(mpn_ryanair, "kkgrid")
autographr(mpn_elite_mex, "gogrid")
autographr(mpn_ryanair, "gogrid")
# }

Run the code above in your browser using DataLab