Learn R Programming

⚠️There's a newer version (0.12.1) of this package.Take me there.

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.

Copy Link

Version

Install

install.packages('migraph')

Monthly Downloads

800

Version

0.6.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

James Hollway

Last Published

April 15th, 2021

Functions in migraph (0.6.2)

southern_women

Two-mode southern women dataset
sample

Sample networks according to certain probabilities
reexports

Objects exported from other packages
project

Projecting two-mode objects into one-mode objects
graph_clustering

Clustering for one-, two-, and three- mode networks
plot.igraph

Plotting of one-mode and two-mode graphs
mpn_senate112

Two-mode 112th Congress Senate Voting
netlm

Linear regression for multimodal network data
mpn_ryanair

One-mode EU policy influence network, June 2004
mpn_evs

Two-mode European Values Survey, 1990 and 2008
node_constraint

Constraint for one- and two-mode networks
node_smallworld

Watts-Strogatz small-world model for two-mode networks
convert

migraph-consistent object classes
centrality

Centrality for one- and two-mode networks
create

Create networks that conform to particular structures
centralization

Centralization for one- and two-mode networks
mpn_elite_mex

One-mode Mexican power elite database
blockmodel

Blockmodelling
mpn_elite_usa_advice

Two-mode American power elite database
mpn_elite_usa_money

Three-mode American power elite database
mpn_bristol

Multimodal (3) Bristol protest events, 1990-2002