项目作者: rrrlw

项目描述 :
R package that provides complex systems datasets from the Colorado Index of Complex Networks (ICON) at https://icon.colorado.edu/.
高级语言: R
项目地址: git://github.com/rrrlw/ICON.git
创建时间: 2019-11-29T21:41:11Z
项目社区:https://github.com/rrrlw/ICON

开源协议:Creative Commons Zero v1.0 Universal

下载


ICON: easy access to complex systems datasets

Travis-CI Build Status
AppVeyor Build Status
Codecov test coverage

License: CC0-1.0
CRAN version
CRAN Downloads

Preprint

Overview

The ICON R package provides easy-to-use and easy-to-access datasets from the Index of COmplex Networks (ICON) database available at the University of Colorado website.
All datasets can be loaded with a single function call and new datasets are being slowly added from ICON at https://icon.colorado.edu.
Currently, the ICON R package includes 1,075 complex networks.

Installation

To install the ICON package, run the following R code:

  1. # install from CRAN (older, fewer networks)
  2. install.packages("ICON")
  3. # install development version from GitHub (updated, more networks)
  4. devtools::install_github("rrrlw/ICON")

Sample code

The sample code below demonstrates network visualization using the igraph R package.
For a more detailed look at network analysis (using the network R package) and visualization (using the ggnetwork R package), please take a look at the package vignette.

  1. # load ICON package and data frame of available datasets
  2. library("ICON")
  3. data(ICON_data)
  4. # vector of names of available datasets
  5. print(ICON_data$Var_name)
  6. # look at entire data frame in Rstudio
  7. View(ICON_data)
  8. # load the chess dataset for use and look at the first few lines
  9. get_data("chess")
  10. head(chess)
  11. # load another dataset for use
  12. get_data("seed_disperse_beehler")
  13. # plot interaction network using igraph
  14. library("igraph")
  15. my_graph <- graph_from_edgelist(as.matrix(seed_disperse_beehler[, 1:2]), directed = FALSE)
  16. plot(my_graph, vertex.label = NA, vertex.size = 5)
  17. # following plot is generated (exact vertex positioning varies each time code is run)


Contribute

See contribution guidelines here.
First-timers and beginners are welcome!