graph_flow | R Documentation |
A graph showing all Flow objects heritage is calculated, and displayed.
graph_flow(env = .GlobalEnv, child_to_parent = TRUE, plotit = TRUE, ...)
env |
The environment to look for Flow objects. By default, it is
|
child_to_parent |
Do the arrows go from child to parent (by default), or in the other direction? |
plotit |
Do we plot the graph (by default)? |
... |
Further parameters passed to |
An igraph object (returned invisibly if plotit = TRUE
.
flow
a <- flow()
b <- a$flow()
c <- b$flow()
d <- a$flow()
# Use of custom names
e <- flow(.name = "parent")
f <- e$flow(.name = "child")
graph_flow()
# Arrows pointing from childs to parents, and do not plot it
g <- graph_flow(child_to_parent = FALSE, plotit = FALSE)
g
plot(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.