plotd3 {pkggraph}R Documentation

plotd3

Description

D3 network of a pkggraph object

Usage

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

## 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)

[Package pkggraph version 0.2.3 Index]