| plot_survival_curves | R Documentation |
plot_survival_curves() draws the fitted survival probability as a function
of exposure duration (on a log10 x-axis), one curve per temperature, with the
observed survival proportions overlaid as points. For a grouped fit the
curves are faceted by group.
plot_survival_curves(fit, temps = NULL, times = NULL, ...)
fit |
A |
temps |
Numeric vector of temperatures to draw curves for. Defaults to the distinct observed temperatures (capped at a readable number). |
times |
Numeric vector of durations to evaluate the smooth curve over. Defaults to a log-spaced sequence over the observed duration range. |
... |
Reserved; must be empty. |
A ggplot object.
d <- simulate_tls(family = "binomial", times = c(30, 60, 120, 240, 480),
CTmax = 36, z = 4, tref = 60, seed = 1)
dat <- standardize_data(d, temp = "temp", duration = "duration",
n_total = "total", n_surv = "survived", duration_unit = "minutes")
fit <- fit_4pl(dat, family = "binomial", t_ref = 60,
method = "wald", quiet = TRUE)
plot_survival_curves(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.