plotd3: plotd3

Description Usage Arguments Author(s) Examples

Description

D3 network of a pkggraph object

Usage

1
plotd3(x, height = 500, width = 1000)

Arguments

x

plot object generated by neighborhood_graph or make_neighborhood_graph of type igraph

height

parameter to change the height of the d3 plot. Default is 500

width

parameter to change the width of the d3 plot. Default is 1000

Author(s)

Nikhil Singh

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
  pkggraph::init(local = TRUE)
  plot_obj <- pkggraph::neighborhood_graph("hash")
  pkggraph::plotd3(plot_obj)

  plot_obj <- pkggraph::neighborhood_graph(c("hash","tidytext"))
  pkggraph::plotd3(plot_obj, height = 750, width = 1200)

  plot_obj <- pkggraph::neighborhood_graph(c("hash","Matrix"))
  pkggraph::plotd3(plot_obj)

## End(Not run)

talegari/pkggraph documentation built on May 6, 2019, 10:50 a.m.