ggplot2
, along with several geometries to plot their elements.
This package allows to pass network objects to Install from CRAN, or from GitHub with devtools
:
# stable
install.packages("ggnetwork")
# dev
devtools::install_github("briatte/ggnetwork")
IMPORTANT: the ggnetwork
package depends on ggplot2
version 2.0.0 or above.
The package vignette contains detailed examples of how to use its fortify method and each of its geometries.
For further examples that use ggnetwork
with other packages to produce animated graphs, see James Curley's slides on “Interactive and Dynamic Network Visualization in R.”
Comments and suggestions are very welcome: please file them as issues.
See also the geomnet, ggnet and ggraph packages for related work.
Thanks to Michał Bojanowski, Heike Hofmann, Pedro Jordano, Moritz Marbach, Tyler Rinker, Bertrand Sudre, Samantha C. Tyner, and two anonymous R Journal reviewers.