netCoin combines the data analysis capabilities of R with the interactive visualization libraries of JavaScript to create networks of coincidences, co-occurrences, correlations and regressions that can be explored directly in a browser, embedded in HTML files or integrated into Shiny applications. It also generates networked HTML galleries and other plots of coincidences.
This project's aim is to integrate traditional statistical techniques with automatic learning and social network analysis tools for the purpose of obtaining visual and interactive displays of big data. The interdisciplinary team involved has the following objectives:
Install the released version from CRAN:
install.packages("netCoin")
Or the development version from GitHub:
# install.packages("remotes")
# remotes::install_github("Modesto-Escobar/netCoin")
install.packages("netCoin", repos = c('https://modesto-escobar.r-universe.dev', 'https://cloud.r-project.org'))
library(netCoin)
# Classic coincidence network from a binary incidence matrix
data(finches)
net <- netCoin(finches)
plot(net) # opens an interactive HTML visualisation
# Coincidence analysis with statistical significance
co <- coin(finches)
summary(co)
plot(co)
| Area | Key functions |
|---|---|
| General coincidence networks |
netCoin(), addNetCoin(), allNet()
|
| Classic coincidence analysis |
coin(), coocur(), propCoin()
|
| Correlation networks |
netCorr(), d_netCorr()
|
| Survey-oriented networks |
surCoin(), surScat()
|
| Regression-based networks |
logCoin(), glmCoin()
|
| Path and cobweb networks |
pathCoin(), cobCoin()
|
| Galleries and multi-panel views |
gallery(), netGallery(), netExhibit(), multiPages()
|
| Layout and node handling |
asNodes(), layoutCircle(), layoutGrid()
|
| Export to external formats |
savePajek(), saveGhml()
|
| Shiny integration | shinyCoin() |
Interactive visualisations are powered by D3.js through the companion package
rD3plot.
Package website: https://modesto-escobar.github.io/netCoin/
Vignettes (after installation):
vignette("netCoin") # introduction and main use cases
vignette("surCoin") # survey-oriented networks
vignette("galleries") # building galleries and exhibits
To cite netCoin in publications, run:
citation("netCoin")
This work has been supported by grants CSO2013-49278-EXP, PGC2018-093755-B100, PDC2022-133355-100 and PID2023-147358NB-100, funded by MICIU/AEI/10.13039/501100011033 and by the European Union NextGenerationEU/PRTR programme.
Please file issues and pull requests at:
https://github.com/Modesto-Escobar/netCoin-2.x/issues
GPL-2 | GPL-3