Plot the fitted survival surface over temperature and duration
Source:R/plotting.R
plot_survival_surface.Rdplot_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.
Arguments
- fit
A
profile_tlsfit fromfit_tls().- temps, times
Numeric grids passed to
predict_survival_surface(). Defaults span the observed ranges.- contour
Logical; overlay contour lines (default
TRUE).- ...
Reserved; must be empty.
Examples
d <- simulate_tls(family = "binomial", CTmax = 36, z = 4, seed = 1)
fit <- fit_tls(d, y = survived, n = total, time = duration, temp = temp,
family = "binomial", tref = 1)
plot_survival_surface(fit)