migraph
About the package
This package presents functions for analysing multimodal and multilevel networks. The package is intended as a software companion to the forthcoming book:
David Knoke, Mario Diani, James Hollway, and Dimitris Christopoulos (2021) Multimodal Political Networks.
Cambridge University Press: Cambridge.
The package is offered as a complement to existing R packages for network analysis.
It can analyse data in base formats such as matrices and (data frame) edgelists,
but can also work with {igraph}
and {network}
objects,
and is consistent with a {tidygraph}
workflow.
Please explore the website to find out more.
Installation
From binary
Perhaps the easiest way to install {migraph}
is by installing a compiled binary.
Binaries for all major OSes -- Windows, Mac, and Linux --
can be found by clicking on the latest release here.
Download the appropriate binary for your operating system,
and install using an adapted version of the following commands:
- For Windows:
install.packages("~/Downloads/migraph_winOS.zip", repos = NULL)
- For Mac:
install.packages("~/Downloads/migraph_macOS.tgz", repos = NULL)
- For Unix:
install.packages("~/Downloads/migraph_linuxOS.tar.gz", repos = NULL)
From source
To install from source the latest main version of {migraph}
from Github,
please install the {remotes}
package from CRAN and then enter into the console:
- For latest stable version:
remotes::install_github("jhollway/migraph")
- For latest development version:
remotes::install_github("jhollway/migraph@develop")
Relationship to other packages
It draws together, updates, and builds upon many functions currently available in
other excellent R packages such as
{bipartite}
,
{multinet}
,
{netmem}
,
and {tnet}
,
and implements many additional features currently only available outside the R ecosystem
in packages such as UCINET.