plotPackageGraph | R Documentation |
From a list of nodes and edges, plots a diagram or graph
plotPackageGraph(graph, fun.list, use.subgraphs = FALSE, use.colors = FALSE)
graph |
A list generated by |
fun.list |
An optional list generated by |
use.subgraphs |
Logical indicating whether the graph should be partitioned into subgraphs by the file in which the function assignment was made. DEFAULT: FALSE |
use.colors |
Logical indicating whether the nodes of the graph should be colored by the file in which the function assignment was made. N.B. No legend is plotted for the colors. DEFAULT: FALSE |
A grviz plot.
collectFunNames
, buildPackageGraph
pkgGraph <- system.file("extdata", package = "pkgGraphR") |>
buildPackageGraph()
plotPackageGraph(graph = pkgGraph)
pkgFuns <- system.file("extdata", package = "pkgGraphR") |>
collectFunNames()
plotPackageGraph(graph = pkgGraph, fun.list = pkgFuns, use.subgraphs = TRUE)
plotPackageGraph(graph = pkgGraph, fun.list = pkgFuns, use.colors = TRUE)
plotPackageGraph(graph = pkgGraph, fun.list = pkgFuns, use.colors = TRUE, use.subgraphs = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.