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.
ggnet
GGally
packageAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.