Skip to content
Σ sigma.js for R
Branch: master
Clone or download
Latest commit caded94 Mar 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci circleci config fixed Jun 18, 2018
JOSS small clarification Jul 31, 2018
R
data-raw
data
demo
docs new sticker 🔥 Mar 10, 2019
inst
man
pkgdown
tests
vignettes
.DS_Store
.Rbuildignore merge Jan 6, 2019
.gitignore
.travis.yml tests init + JOSS init Jun 26, 2018
CONDUCT.md
CONTRIBUTING.md Support added Jul 12, 2018
CRAN-RELEASE
DESCRIPTION scale color init Feb 3, 2019
LICENSE cran submission Aug 25, 2018
LICENSE.md
NAMESPACE
NEWS.md
README.md Merge branch 'master' of https://github.com/JohnCoene/sigmajs Jan 6, 2019
appveyor.yml
bitbucket-pipelines.yml
codecov.yml tests init + JOSS init Jun 26, 2018
cran-comments.md cran submission Aug 25, 2018
index.Rmd

README.md

sigmajs

Travis-CI Build Status AppVeyor Build Status lifecycle bitbucket CRAN status CircleCI Coverage status Coverage status DOI twinetverse CRAN log

sigmajs for R.

With the rise in popularity of networks, it is important for R users to have access to a package that allows visualising the aforementioned networks in a highly configurable, interactive and dynamic manner. sigmajs is a fully-fledged wrapper for the sigma.js JavaScript library.

The sigma.js JavaScript library is described as follows on its website:

Sigma is a JavaScript library dedicated to graph drawing. It makes easy to publish networks on Web pages, and allows developers to integrate network exploration in rich Web applications

Install

The stable version from CRAN.

install.packages("sigmajs")

The development version from Github of Bitbucket.

# install.packages("devtools")
devtools::install_github("JohnCoene/sigmajs") # github
devtools::install_bitbucket("JohnCoene/sigmajs") # bitbucket

Examples

Most functions have corresponding demo(), see documentation and shiny demo.

library(sigmajs)

# generate data
nodes <- sg_make_nodes()
edges <- sg_make_edges(nodes)

# visualise
sigmajs() %>%
	sg_nodes(nodes, id, label, size, color) %>%
	sg_edges(edges, id, source, target)

# from igraph 
data("lesmis_igraph")
 
layout <- igraph::layout_with_fr(lesmis_igraph)

sigmajs() %>%
	sg_from_igraph(lesmis_igraph, layout)

# from GEXF
gexf <- system.file("examples/arctic.gexf", package = "sigmajs")

sigmajs() %>% 
	sg_from_gexf(gexf) 

# proxies demos
demo(package = "sigmajs")

Contributing

See the contrinuting guidelines if you encounter any issue. Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

You can’t perform that action at this time.