Reputation: 59435
I want to make a call graph, that would:
At the moment, I have come up with this, but it is still short on conditions 2 and 4 above:
f <- function (x)
{
x + 1
}
g <- function (y)
{
f(y)*2
}
h <- function (x, y)
{
f(x)+g(y)
}
library(foodwebr)
x <- foodweb(h)
plot(x)
Upvotes: 0
Views: 40