Learn R Programming

simmer (version 3.6.0.9000)

plot_resource_usage: Plot usage of a resource over time

Description

Plot the usage of a resource over the simulation time frame.

Usage

plot_resource_usage(envs, resource_name, items = c("system", "queue",
  "server"), steps = FALSE)

Arguments

envs

a single simmer environment or a list of environments representing several replications.

resource_name

the name of the resource (character value).

items

the components of the resource to be plotted.

steps

adds the changes in the resource usage.

Value

Returns a ggplot2 object.

See Also

plot_resource_utilization, plot_evolution_arrival_times, plot_attributes.