Description Usage Arguments Details Author(s) See Also Examples
plot a pkggraph object
1 2 |
x |
plot object generated by |
... |
additional arguments (See details) |
background
: "black" or "white". Default is
'black'
nodeImportance
: "in", "out" or "both", in - Node will
be considered important(and increased size) if more incoming. out - Node
will be considered important if more outgoing. both - Node importance will
be calculated on both incoming and outgoing. True for all the nodes.
Default is 'both'
edgeLabel
: logical. TRUE if edge label has
to be shown. Default is FALSE
Nikhil Singh
neighborhood_graph
,
make_neighborhood_graph
, get_neighborhood
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.