plot.pkggraph: plot a pkggraph object

Description Usage Arguments Details Author(s) See Also Examples

Description

plot a pkggraph object

Usage

1
2
## S3 method for class 'pkggraph'
plot(x, ...)

Arguments

x

plot object generated by neighborhood_graph or make_neighborhood_graph

...

additional arguments (See details)

Details

Author(s)

Nikhil Singh

See Also

neighborhood_graph, make_neighborhood_graph, get_neighborhood

Examples

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

  plot_obj <- pkggraph::neighborhood_graph("tidytext")
  plot(plot_obj
       , background     = "white"
       , nodeImportance = "out")
  plot_obj <- pkggraph::neighborhood_graph(c("hash","tokenizers")
                                           , interconnect = FALSE
                                           )
  plot(plot_obj,  background = "white")
  
## End(Not run)

pkggraph documentation built on May 2, 2019, 2:08 a.m.