Package: sgraph
Title: Network Visualization Using 'sigma.js'
Version: 1.1.0
Authors@R: c(person("Thomas", "Charlon", role = c("aut", "cre"),
                    email = "charlon@protonmail.com",
                    comment = c(ORCID = "0000-0001-7497-0470")),
             person("CELEHS", role = "aut", comment = "<https://celehs.hms.harvard.edu>"),
             person("PARSE Health", role = "aut", comment = "<https://parse-health.org>"))
Description: 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.
Imports: cowplot, ggplot2, grDevices, htmlwidgets, igraph, jsonlite,
        magrittr, RColorBrewer, stringi
Depends: R (>= 3.5.0)
Suggests: knitr, testthat
VignetteBuilder: knitr
License: GPL-3
Encoding: UTF-8
RoxygenNote: 7.3.1
URL: https://gitlab.com/thomaschln/sgraph
BugReports: https://gitlab.com/thomaschln/sgraph/-/issues
LazyData: true
NeedsCompilation: no
Packaged: 2024-08-19 14:50:08 UTC; root
Author: Thomas Charlon [aut, cre] (<https://orcid.org/0000-0001-7497-0470>),
  CELEHS [aut] (<https://celehs.hms.harvard.edu>),
  PARSE Health [aut] (<https://parse-health.org>)
Maintainer: Thomas Charlon <charlon@protonmail.com>
Repository: CRAN
Date/Publication: 2024-08-19 16:00:02 UTC
Built: R 4.6.0; ; 2026-04-29 04:16:55 UTC; unix
