A wrapper for the fortify.network and fortify.igraph functions that will also try to coerce matrices and data frames to network objects.

ggnetwork(x, ...)

Arguments

x

an object of class network or igraph, or any object that can be coerced to that class, such as an adjacency or incidence matrix, or an edge list: see edgeset.constructors and network for details.

...

arguments passed to the fortify.network or fortify.igraph functions.