Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stressaddition
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oekotox
stressaddition
Commits
d9f1bb71
Commit
d9f1bb71
authored
5 years ago
by
Sebastian Henz
Browse files
Options
Downloads
Patches
Plain Diff
Rename adjust_smooth_concentrations to adjust_plot_concentrations
parent
d186329c
No related branches found
No related tags found
1 merge request
!22
rename internal adjust_plot_concentrations
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
DESCRIPTION
+2
-2
2 additions, 2 deletions
DESCRIPTION
R/helpers.R
+4
-4
4 additions, 4 deletions
R/helpers.R
R/plot_effect.R
+1
-1
1 addition, 1 deletion
R/plot_effect.R
R/plot_stress.R
+1
-1
1 addition, 1 deletion
R/plot_stress.R
with
8 additions
and
8 deletions
DESCRIPTION
+
2
−
2
View file @
d9f1bb71
Package: stressaddition
Type: Package
Title: Modeling Tri-Phasic Concentration-Response Relationships
Version: 2.2.0
.9000
Date: 2020-02-2
7
Version: 2.2.0
Date: 2020-02-2
8
Authors@R: person("Sebastian", "Henz", role = c("aut", "cre"),
email = "sebastian.henz@ufz.de",
comment = c(ORCID = "0000-0001-8299-8852"))
...
...
This diff is collapsed.
Click to expand it.
R/helpers.R
+
4
−
4
View file @
d9f1bb71
...
...
@@ -33,11 +33,11 @@ get_log_ticks <- function(x) {
}
adjust_
smo
ot
h
_concentrations
<-
function
(
model
)
{
adjust_
pl
ot_concentrations
<-
function
(
model
)
{
# Helper for the plot functions, not exported.
# Deals with the concentrations which are unnecessary for plotting.
#
This
means it removes the concentrations in the gap and
scal
es the
# concentrations left of the gap
up
.
# Deals with the concentrations which are unnecessary for plotting.
This
# means it removes the concentrations in the gap and
increas
es the
# concentrations left of the gap.
curves
<-
model
$
curves
gap_idx
<-
min
(
which
(
!
curves
$
use_for_plotting
))
...
...
This diff is collapsed.
Click to expand it.
R/plot_effect.R
+
1
−
1
View file @
d9f1bb71
...
...
@@ -30,7 +30,7 @@ plot_effect <- function(model,
which
<-
which
[
which
%in%
valid_names
]
}
temp
<-
adjust_
smo
ot
h
_concentrations
(
model
)
temp
<-
adjust_
pl
ot_concentrations
(
model
)
curves
<-
temp
$
curves
log_ticks
<-
get_log_ticks
(
curves
$
concentration
)
concentration
<-
c
(
curves
$
concentration
[
1
],
model
$
args
$
concentration
[
-1
])
...
...
This diff is collapsed.
Click to expand it.
R/plot_stress.R
+
1
−
1
View file @
d9f1bb71
...
...
@@ -35,7 +35,7 @@ plot_stress <- function(model,
}
}
temp
<-
adjust_
smo
ot
h
_concentrations
(
model
)
temp
<-
adjust_
pl
ot_concentrations
(
model
)
curves
<-
temp
$
curves
log_ticks
<-
get_log_ticks
(
curves
$
concentration
)
concentration
<-
c
(
curves
$
concentration
[
1
],
model
$
args
$
concentration
[
-1
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment