Interface to 'sigma.js' graph visualization library including animations, plugins and shiny proxies.
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.
# install.packages("devtools")devtools::install_github("JohnCoene/sigmajs") # githubdevtools::install_bitbucket("JohnCoene/sigmajs") # bitbucket
Note that the graphs do not work in the RStudio viewer, and thus open in your default browser.
library(sigmajs)# generate datanodes <- sg_make_nodes()edges <- sg_make_edges(nodes)# visualisesigmajs() %>%sg_nodes(nodes, id, label, size, color) %>%sg_edges(edges, id, source, target)# from igraphdata("lesmis_igraph")layout <- igraph::layout_with_fr(lesmis_igraph)sigmajs() %>%sg_from_igraph(lesmis_igraph, layout)# from GEXFgexf <- system.file("examples/arctic.gexf", package = "sigmajs")sigmajs() %>%sg_from_gexf(gexf)# proxies demosdemo(package = "sigmajs")
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.