Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
Jul 1, 2020

Statistical Analysis of Network Data with R, 2nd Edition

The new edition of this book provides an easily accessible introduction to the statistical analysis of network data using R. It has been fully revised and can be used as a stand-alone resource in which multiple R packages are used to illustrate how to conduct a wide range of network analyses, from basic manipulation and visualization, to summary and characterization, to modeling of network data. The central package is igraph, which provides extensive capabilities for studying network graphs in R. The new edition of this book includes an overhaul to recent changes in igraph and a new chapter on networked experiments. (If you are looking for code for the first edition of the book, you may find it archived here or on CRAN.)

Where to buy?

The sand package

The sand package contains a collection of data sets used in the book. It also contains all code found in the book, organized by code chunks, and executable in an interactive fashion. It is available from CRAN, from where it can be installed with:


Alternatively, it can be installed directly from here on github with:


(Note: You may need to install devtools first if it is not already installed.)

The code

  1. Introduction
  2. Manipulating Network Data
  3. Visualizing Network Data
  4. Descriptive Analysis of Network Graph Characteristics
  5. Mathematical Models for Network Graphs
  6. Statistical Models for Network Graphs
  7. Network Topology Inference
  8. Modeling and Prediction for Processes on Network Graphs
  9. Analysis of Network Flow Data
  10. Networked Experiments
  11. Dynamic Networks

You can run the code interactively from within R, using the sand package, see ?sand for the details.


You can leave a comment, or ask a question in our issue tracker.


Statistical Analysis of Network Data with R, 2nd Edition



No releases published


No packages published


You can’t perform that action at this time.