Using R and 'igraph' for Social Network Analysis

Below are preparation instructions for the participants of the workshop Using R and 'igraph' for Social Network Analysis taking place at INSNA Sunbelt Social Networks Conference on April 5th, 8am.

As I wrote in the description, the workshop will have a practical character: I prepared data, examples, and exercises that we will use during the workshop. To take full advantage of the workshop bring your laptop preparing it up-front by going through the items below.

Preparations

Please note that to follow the steps

  • You have to be connected to the internet.
  • Installing packages (items 3-5) might take couple of minutes (around 10) depending on your machine and the quality of the internet connection.

The steps to follow are:

  1. Make sure you have the latest version of R (3.2.4) installed. You can download R from https://cran.rstudio.com
  2. Make sure you have the latest version of RStudio Desktop installed. RStudio can be downloaded from https://www.rstudio.com/products/rstudio/#Desktop
  3. Please install the following packages from CRAN: “igraph”, “network”, “intergraph”, “ggplot2”, “dplyr”, “tidyr”, “devtools”. You can do that by issuing the following command from R prompt:
    install.packages(c("igraph", "network", "intergraph", "ggplot2", "dplyr", "tidyr", "devtools"))
  4. Please install packages 'ggnetwork', 'ggforce' and 'ggraph' from GitHub by issuing the following commands:
    devtools::install_github('thomasp85/ggforce')
    devtools::install_github("thomasp85/ggraph")
    devtools::install_github("briatte/ggnetwork")

    These are promising (especially if you use ggplot2) new packages for network visualization that are still in development. We will have a look at them, time-permitting. For these packages to work please make sure you have the package 'ggplot2' at least at version 2.0.0. One way to check the current version is running

    packageDescription("ggplot2")$Version

    If you do not have it installed or the version is too old (re)install it with

    install.packages("ggplot2")
  5. I have prepared a package containing various SNA functions and data that we will use. It is available from GitHub too and can be installed with:
    devtools::install_github("mbojan/isnar")

    However, I will probably still add a thing or two to this package before the workshop so we will most likely install it once again in the beginning of the workshop.

  6. You will need WiFi access during the workshop. Please make sure you can access the WiFi at the conference site by visiting the conference registration desk before coming to the workshop to get necessary information how to get online.