An Implementation of Grammar of Graphics for Graphs and Networks

The grammar of graphics as implemented in ggplot2 is a poor fit for graph and network visualizations due to its reliance on tabular data input. ggraph is an extension of the ggplot2 API tailored to graph visualizations and provides the same flexible approach to building up plots layer by layer.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.0.0 by Thomas Lin Pedersen, 7 months ago

Browse source code at

Authors: Thomas Lin Pedersen

Documentation:   PDF Manual  

GPL-3 license

Imports Rcpp, dplyr, plyr, ggforce, grid, igraph, scales, MASS, digest, gtable, ggrepel, utils, stats, viridis

Depends on ggplot2

Suggests network, knitr, rmarkdown

Linking to Rcpp

Imported by phylopath.

Suggested by fivethirtyeight, rvinecopulib, widyr.

See at CRAN