| plot_survival_curves | R Documentation |
Plots posterior median ± 95% CrI of survival as a function of duration, one coloured line per assay temperature. Optionally overlays observed survival proportions per replicate.
plot_survival_curves(
pred,
observed = NULL,
log_time = FALSE,
palette = "viridis",
response_label = "Survival probability",
clip_to_observed = TRUE,
facet_scales = c("auto", "fixed", "free", "free_x", "free_y")
)
pred |
Output of |
observed |
Optional standardised data tibble (from |
log_time |
Logical. If |
palette |
Character. Viridis option for the temperature colour scale.
Default |
response_label |
Character. y-axis label for the modelled response.
Default |
clip_to_observed |
Logical. If |
facet_scales |
Facet scale behaviour for grouped fits. |
Colour mapping uses the viridis palette by default (yellow at the highest
temperature, dark purple at the lowest); the exposure-duration axis is
linear by default, with the classical log-time TDT view available via
log_time = TRUE.
A ggplot object.
## Not run:
pred <- predict_survival_curves(wf, temps = c(30, 32, 34, 36))
plot_survival_curves(pred, observed = wf$data)
plot_survival_curves(pred, log_time = TRUE) # classical TDT view
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.