plot.Delayed: Plot Method for Delayed Objects

View source: R/task_graph.R

plot.DelayedR Documentation

Plot Method for Delayed Objects

Description

Plot Method for Delayed Objects

Usage

## S3 method for class '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

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)

jeremyrcoyle/delayed documentation built on Oct. 26, 2022, 7:24 a.m.