sgraph: Graph Visualization Using 'sigma.js'

Interactive visualizations of graphs created with the 'igraph' package using a 'htmlwidgets' wrapper for the 'sigma.js' network visualization library v2.4.0 <https://www.sigmajs.org/>, enabling to display several thousands of nodes. While several 'R' packages have been developed to interface 'sigma.js', all were developed for v1.x.x and none have migrated to v2.4.0 nor are they planning to. This package builds upon the 'sigmaNet' package, and users familiar with it will recognize the similar design approach. Two extensions have been added to the classic 'sigma.js' visualizations by overriding the underlying 'JavaScript' code, enabling to draw a frame around node labels, and to display labels on multiple lines by parsing line breaks. Other additional functionalities that did not require overriding 'sigma.js' code include toggling node visibility when clicked using a node attribute and highlighting specific edges based on connectivity to a specific set of nodes. 'sigma.js' is currently preparing a stable release v3.0.0, and this package plans to update to it when it is available.

Version: 1.0.0
Depends: R (≥ 3.5.0)
Imports: cowplot, ggplot2, grDevices, htmlwidgets, igraph, jsonlite, magrittr, RColorBrewer, stringi
Suggests: knitr, testthat
Published: 2024-05-27
DOI: 10.32614/CRAN.package.sgraph
Author: Thomas Charlon ORCID iD [aut, cre], CELEHS [aut] (<https://celehs.hms.harvard.edu>), PARSE Health [aut] (<https://parse-health.org>)
Maintainer: Thomas Charlon <charlon at protonmail.com>
BugReports: https://gitlab.com/thomaschln/sgraph/-/issues
License: GPL-3
URL: https://gitlab.com/thomaschln/sgraph
NeedsCompilation: no
CRAN checks: sgraph results

Documentation:

Reference manual: sgraph.pdf
Vignettes: Sgraph Network Visualization

Downloads:

Package source: sgraph_1.0.0.tar.gz
Windows binaries: r-devel: sgraph_1.0.0.zip, r-release: sgraph_1.0.0.zip, r-oldrel: sgraph_1.0.0.zip
macOS binaries: r-release (arm64): sgraph_1.0.0.tgz, r-oldrel (arm64): sgraph_1.0.0.tgz, r-release (x86_64): sgraph_1.0.0.tgz, r-oldrel (x86_64): sgraph_1.0.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=sgraph to link to this page.