simulator_plot: Plot simulator outputs for multiple waves

Description Usage Arguments Details Value Examples

View source: R/multiple_waves.R

Description

Plots the simulator results for points at successive waves.

Usage

1
2
3
4
5
6
7
8
simulator_plot(
  wave_points,
  z,
  zero_in = TRUE,
  palette = NULL,
  wave_numbers = seq(ifelse(zero_in, 0, 1), length(wave_points) - ifelse(zero_in, 1,
    0))
)

Arguments

wave_points

The set of wave points, as a list of data.frames

z

The set of target values for each output

zero_in

Is wave zero included? Default: TRUE

palette

If a larger palette is required, it should be supplied here.

wave_numbers

Which waves to plot. If not supplied, all waves are plotted.

Details

The values plotted are the outputs from the simulator; the points passed to it are the points suggested by that wave of emulators. By default, wave 0 is included. A colour scheme is chosen outright for all invocations of this function: it is a 10-colour palette. If more waves are required, then an alternative palette should be selected.

Value

A ggplot object.

Examples

1
2
3
4
5
6
7
8
 targets <- list(
  nS = list(val = 281, sigma = 10.43),
  nI = list(val = 30, sigma = 11.16),
  nR = list(val = 689, sigma = 14.32)
 )
 simulator_plot(GillespieMultiWaveData, targets)
 simulator_plot(GillespieMultiWaveData[2:4], targets,
  zero_in = FALSE, wave_numbers = c(1,3))

Tandethsquire/emulatorr documentation built on April 12, 2021, 1:08 a.m.