plot.squire_simulation: squire simulation plot

View source: R/object.R

plot.squire_simulationR Documentation

squire simulation plot

Description

squire simulation plot

Usage

## S3 method for class 'squire_simulation'
plot(
  x,
  var_select = NULL,
  replicates = FALSE,
  summarise = TRUE,
  ci = TRUE,
  q = c(0.025, 0.975),
  summary_f = mean,
  x_var = "t",
  particle_fit = FALSE,
  ...
)

Arguments

x

An squire_simulation object

var_select

Vector of variable names to plot (default is all)

replicates

Plot replicates

summarise

Logical, add summary line

ci

logical add confidence interval ribbon

q

Quantiles for upper and lower of interval ribbon

summary_f

Function to summarise each compartment passed to the fun argument of stat_summary

x_var

X variable to use for plotting (default is "t", but can be set to, "date", if date_0 provided), which will cause the date to be plotted rather than time.

particle_fit

If the squire_simulation provided is the result of running the particle filter, do we want to just plot the fit. Default = FALSE

...

additional arguments affecting the plot produced.


mrc-ide/squire documentation built on Sept. 10, 2022, 1:11 a.m.