sg_from_igraph

0th

Percentile

Create from igraph

Create a sigmajs from an igraph object.

Usage
sg_from_igraph(sg, igraph, layout = NULL, sd = NULL)
Arguments
sg

An object of class sigmajsas intatiated by sigmajs.

igraph

An object of class igraph.

layout

A matrix of coordinates.

sd

A SharedData of nodes.

Aliases
  • sg_from_igraph
Examples
# NOT RUN {
data("lesmis_igraph")

layout <- igraph::layout_with_fr(lesmis_igraph)

sigmajs() %>%
	sg_from_igraph(lesmis_igraph, layout) %>%
	sg_settings(defaultNodeColor = "#000")
# }
# NOT RUN {
# }
Documentation reproduced from package sigmajs, version 0.1.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.