Learn R Programming

simmer.plot (version 0.1.18)

plot.trajectory: Plot Method for trajectory Objects

Description

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, ...)

Value

Returns an htmlwidget.

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.

Examples

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

plot(x)

Run the code above in your browser using DataLab