callGraph | R Documentation |
This generic and methods creates a call graph (or data.frame of the caller and callee) identifying which function calls which other functions directly in its body or default values of the parameters.
callGraph(obj, ...)
obj |
the object containing the function(s) of interest. This can be a function object, a list of functions, the name of a package, an environment/namespace |
... |
additional arguments passed to the methods |
A data.frame with 2 columns. These specify the edges in the graph.
Duncan Temple Lang
makeCallGraph
g = callGraph(quote(lm(mpg ~ wt + log(disp), mtcars)), recursive = 2)
plot(g)
g2 = as(g, "igraph")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.