Format the output returned by memc_sensrange or memc_sensfunc into long data format for easy plotting
format_sensout.Rd
Format the output returned by memc_sensrange or memc_sensfunc into long data format for easy plotting
See also
Other sensitivity:
memc_sensfunc()
,
memc_sensrange()
Examples
if (FALSE) {
# Test the sensitivity of the MEND output for V.p, K.p, V.m, K.m, V.d, K.d
pars <- c("V.d" = 3.0e+00,"V.p" = 1.4e+01,"V.m" = 2.5e-01)
prange <- data.frame(min = pars - pars * 0.75,
max = pars + pars * 0.75)
t <- floor(seq(0, 365, length.out = 10))
out <- format_sensout(config = MEND_model, t = t, pars = pars,
parRange = prange, dist = "latin", num = 10)
to_plot <- format_sensout(out)
ggplot(data = to_plot) +
geom_line(aes(time, Mean)) +
geom_ribbon(aes(time, ymin = Min, ymax = Max), alpha = 0.5) +
facet_wrap("variable", scales = "free")
}