| plot_survival_surface | R Documentation |
plot_survival_surface() draws the fitted survival probability as a filled
heatmap over a temperature-by-duration grid, with contour lines, using
predict_survival_surface(). Duration is on a log10 axis. For a grouped fit
the surface is faceted by group.
plot_survival_surface(fit, temps = NULL, times = NULL, contour = TRUE, ...)
fit |
A |
temps, times |
Numeric grids passed to |
contour |
Logical; overlay contour lines (default |
... |
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_surface(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.