Skip to contents

A method for the plot generic that plots a diagram of the given trajectory.

Usage

# S3 method for trajectory
plot(x, engine = "dot",
  fill = scales::brewer_pal("qual"), verbose = FALSE, ...)

Arguments

x

a simmer trajectory.

engine

a string specifying a layout engine (see grViz).

fill

discrete color palette for resource identification.

verbose

show additional info directly in the labels.

...

additional parameters for render_graph.

Value

Returns an htmlwidget.

Examples

x <- trajectory() %>%
  seize("res", 1) %>%
  timeout(1) %>%
  release("res", 1) %>%
  rollback(3)

plot(x)