Description Usage Arguments Value Examples
Plot the observed and modeled survivals and stresses.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | plot_stress(
model,
which = c("sys_tox", "sys_tox_observed", "sys_tox_env", "sys_tox_env_observed"),
show_legend = FALSE,
xlab = "concentration",
ylab = "stress",
main = NULL
)
plot_survival(
model,
which = c("survival_tox", "survival_tox_sys", "survival_tox_observed",
"survival_tox_env", "survival_tox_env_sys", "survival_tox_env_observed"),
show_legend = FALSE,
xlab = "concentration",
ylab = "survival",
main = NULL
)
|
model |
The model object returned from |
which |
A vector of curve names to plot. Allowed are all values of
|
show_legend |
Should the plot include a legend? Defaults to |
xlab, ylab, main |
Axis labels and title. |
None
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | model <- ecxsys(
concentration = c(0, 0.05, 0.5, 5, 30),
hormesis_concentration = 0.5,
survival_tox_observed = c(90, 81, 92, 28, 0),
survival_tox_env_observed = c(29, 27, 33, 5, 0)
)
plot_survival(model, show_legend = TRUE)
plot_stress(model, show_legend = TRUE)
# Plot all curves:
plot_survival(model, which = "all")
plot_stress(model, which = "all")
# Plot only some selected curves:
plot_survival(model, which = c("survival_tox_sys", "survival_tox_env_sys"))
plot_stress(model, which = c("sys_tox", "sys_tox_env"))
# Plot only the observed values:
plot_survival(model, which = c("survival_tox_observed", "survival_tox_env_observed"))
plot_stress(model, which = c("sys_tox_observed", "sys_tox_env_observed"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.