loading...

A graph showing all Flow objects heritage is calculated, and displayed.

graph_flow(env = .GlobalEnv, child_to_parent = TRUE, plotit = TRUE, ...)

Arguments

env

The environment to look for Flow objects. By default, it is .GlobalEnv, and you should not change it, since all Flow objects are derived from it by construction.

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 plot.igraph().

Value

An igraph object (returned invisibly if plotit = TRUE.

See also

Examples

a <- flow()
b <- a$flow()
c <- b$flow()
d <- a$flow()
# Use of custom names
e <- flow(.name = "parent")
#> Warning: Assigning non-quosure objects to quosure lists is deprecated as of rlang 0.3.0.
#> Please coerce to a bare list beforehand with `as.list()`
#> This warning is displayed once every 8 hours.
f <- e$flow(.name = "child")
graph_flow()
#> Error in graph_flow(): No Flow objects found

# Arrows pointing from childs to parents, and do not plot it
g <- graph_flow(child_to_parent = FALSE, plotit = FALSE)
#> Error in graph_flow(child_to_parent = FALSE, plotit = FALSE): No Flow objects found
g
#> Error in eval(expr, envir, enclos): object 'g' not found
plot(g)
#> Error in eval(expr, envir, enclos): object 'g' not found