Learn R Programming

delayed (version 0.4.0)

plot.Delayed: Plot Method for Delayed Objects

Description

Plot Method for Delayed Objects

Usage

# S3 method for Delayed
plot(x, color = TRUE, height = "500px", width = "100%", ...)

Arguments

x

An object of class Delayed for which a task dependency graph will be generated.

color

If TRUE, color-code nodes according to status, and display legend

height

passed to visNetwork

width

passed to visNetwork

...

Additional arugments (passed to visNetwork).

Examples

Run this code
adder <- function(x, y) {
  x + y
}
delayed_adder <- delayed_fun(adder)
z <- delayed_adder(3, 4)
z2 <- delayed_adder(z, 4)
z2$sequential <- TRUE
z3 <- delayed_adder(z2, z)
plot(z3)

Run the code above in your browser using DataLab