Description Usage Arguments Details Value Examples
View source: R/multiple_waves.R
Plots the simulator results for points at successive waves.
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))
)
|
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. |
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.
A ggplot object.
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.