igraph2eforce: Plot igraph

Description Usage Arguments Examples

Description

Plot a network from an igraph object.

Usage

1
2
3

Arguments

g

igraph object

Examples

1
2
3
4
5
6
7
8
9
g <- igraph::make_directed_graph(LETTERS)

nodes <- igraph_nodes(g)
links <- igraph_links(g)

echart() %>%
  eforce_() %>%
  enodes_(nodes, "name", ) %>%
  elinks_(links, "source", "target")

JohnCoene/echarts documentation built on May 22, 2021, 6:18 p.m.