Package: sgraph 1.1.0

sgraph: Network Visualization Using 'sigma.js'

Interactive visualizations of graphs created with the 'igraph' package using a 'htmlwidgets' wrapper for the 'sigma.js' network visualization 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. 'sigma.js' is currently preparing a stable release v3.0.0, and this package plans to update to it when it is available.

Authors:Thomas Charlon [aut, cre], CELEHS [aut], PARSE Health [aut]

sgraph_1.1.0.tar.gz
sgraph_1.1.0.zip(r-4.7)sgraph_1.1.0.zip(r-4.6)sgraph_1.1.0.zip(r-4.5)
sgraph_1.1.0.tgz(r-4.6-any)sgraph_1.1.0.tgz(r-4.5-any)
sgraph_1.1.0.tar.gz(r-4.7-any)sgraph_1.1.0.tar.gz(r-4.6-any)
sgraph_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
sgraph/json (API)
NEWS

# Install 'sgraph' in R:
install.packages('sgraph', repos = c('https://thomaschln.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://gitlab.com/thomaschln/sgraph

Datasets:
  • lesMis - Co-appearances of characters in "Les Miserables"

On CRAN:

Conda:

4.41 score 1 packages 17 scripts 213 downloads 23 exports 46 dependencies

Last updated from:d578a7334b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK127
source / vignettesOK206
linux-release-x86_64OK132
macos-release-arm64OK80
macos-oldrel-arm64OK109
windows-develOK84
windows-releaseOK95
windows-oldrelOK99
wasm-releaseOK124

Exports:%<>%%>%%$%add_edge_coloradd_edge_sizeadd_edge_zindexadd_igraph_infoadd_listeneradd_node_hiddenadd_node_labelsadd_node_sizeconvert_to_spring_weightsget_color_mapget_legendhighlight_multiple_connectedkgraph_to_lgraphl_graph_to_igraphmultiline_labelsrenderSgraphscale_graphsgraph_clusterssgraphOutputsigma_from_igraph

Dependencies:base64encbslibcachemclicowplotcpp11digestevaluatefarverfastmapfontawesomefsggplot2gluegtablehighrhtmltoolshtmlwidgetsigraphisobandjquerylibjsonliteknitrlabelinglatticelifecyclemagrittrMatrixmemoisemimepkgconfigR6rappdirsRColorBrewerrlangrmarkdownS7sassscalesstringitinytexvctrsviridisLitewithrxfunyaml

Graph Visualizations Using Sigma.js

Rendered fromsgraph.Rmdusingknitr::rmarkdownon May 20 2026.

Last update: 2024-06-02
Started: 2024-05-22