Skip to content
Snippets Groups Projects
Commit 0b22e53a authored by Sebastian Henz's avatar Sebastian Henz
Browse files

Merge branch 'develop' into 'master'

Fix regression in plot_effect()

See merge request !20
parents 9d033789 db3abaea
No related branches found
No related tags found
No related merge requests found
Package: stressaddition Package: stressaddition
Type: Package Type: Package
Title: Modeling Tri-Phasic Concentration-Response Relationships Title: Modeling Tri-Phasic Concentration-Response Relationships
Version: 2.1.0 Version: 2.1.1
Date: 2020-02-25 Date: 2020-02-26
Authors@R: c(person("Sebastian", Authors@R: c(person("Sebastian",
"Henz", "Henz",
role = c("aut", "cre"), role = c("aut", "cre"),
......
# stressaddition 2.1.1
* Restore the default behaviour of `plot_effect()` to also show `effect_tox` and `effect_tox_env`.
# stressaddition 2.1.0 # stressaddition 2.1.0
* The functions `plot_effect()` and `plot_stress()` gain a `which` argument that controls which curves are plotted. Consequently, the `show_LL5_model` argument of `plot_effect()` was removed. * The functions `plot_effect()` and `plot_stress()` gain a `which` argument that controls which curves are plotted. Consequently, the `show_LL5_model` argument of `plot_effect()` was removed.
......
...@@ -11,9 +11,9 @@ plot_effect <- function(model, ...@@ -11,9 +11,9 @@ plot_effect <- function(model,
curve_names <- names(model$curves) curve_names <- names(model$curves)
valid_names <- curve_names[startsWith(curve_names, "effect")] valid_names <- curve_names[startsWith(curve_names, "effect")]
if (is.null(which)) { if (is.null(which)) {
which <- c("effect_tox_sys") which <- c("effect_tox", "effect_tox_sys")
if (model$with_env) { if (model$with_env) {
which <- c(which, "effect_tox_env_sys") which <- c(which, "effect_tox_env", "effect_tox_env_sys")
} }
} else if ("all" %in% which) { } else if ("all" %in% which) {
if (length(which) == 1) { if (length(which) == 1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment