plot.trajectory: Plot Method for 'trajectory' Objects

View source: R/plot.trajectory.R

plot.trajectoryR Documentation

Plot Method for trajectory Objects

Description

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

Usage

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

r-simmer/simmer.plot documentation built on July 30, 2023, 9:05 p.m.