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.5)sgraph_1.1.0.zip(r-4.4)sgraph_1.1.0.zip(r-4.3)
sgraph_1.1.0.tgz(r-4.4-any)sgraph_1.1.0.tgz(r-4.3-any)
sgraph_1.1.0.tar.gz(r-4.5-noble)sgraph_1.1.0.tar.gz(r-4.4-noble)
sgraph_1.1.0.tgz(r-4.4-emscripten)sgraph_1.1.0.tgz(r-4.3-emscripten)
sgraph.pdf |sgraph.html
sgraph/json (API)

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

Peer review:

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

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

On CRAN:

23 exports 1.11 score 54 dependencies 1 scripts 311 downloads

Last updated 1 months agofrom:b147d4ca00. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 15 2024
R-4.5-winOKSep 15 2024
R-4.5-linuxOKSep 15 2024
R-4.4-winOKSep 15 2024
R-4.4-macOKSep 15 2024
R-4.3-winOKSep 15 2024
R-4.3-macOKSep 15 2024

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:base64encbslibcachemclicolorspacecowplotcpp11digestevaluatefansifarverfastmapfontawesomefsggplot2gluegtablehighrhtmltoolshtmlwidgetsigraphisobandjquerylibjsonliteknitrlabelinglatticelifecyclemagrittrMASSMatrixmemoisemgcvmimemunsellnlmepillarpkgconfigR6rappdirsRColorBrewerrlangrmarkdownsassscalesstringitibbletinytexutf8vctrsviridisLitewithrxfunyaml

Graph Visualizations Using Sigma.js

Rendered fromsgraph.Rmdusingknitr::rmarkdownon Sep 15 2024.

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