This repository contains the latest versions of the ggnet
and ggnet2
functions, which allow to visualize networks as ggplot2
objects.
ggnet
and ggnet2
are part of the GGally
package. Install it from CRAN:
install.packages("GGally")
You can also install ggnet
and ggnet2
as a small standalone package:
devtools::install_github("briatte/ggnet")
Note that you will need the latest version of ggplot2
(2.0.0) for any of the functions to work properly.
The ggnet2
function is fully documented in this vignette.
The data for one of the examples, a Twitter network of French Members of Parliament, is included in this repository, as is the vignette source.
- Moritz Marbach coded the very first version of
ggnet
- Heike Hoffmann and Ming-Yu Liu provided code to improve the display of edge arrows
- Pedro Jordano suggested adding support for bipartite networks
- Baptiste Coulmont and Ewen Gallic provided further inspiration
- Barret Schloerke helps by maintaining the
GGally
package