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
20b96c8b
Commit
20b96c8b
authored
4 years ago
by
Sebastian Henz
Browse files
Options
Downloads
Patches
Plain Diff
Exlain the axis gap in the docu and comments, closes
#24
.
parent
36d53bc6
No related branches found
No related tags found
1 merge request
!30
version 3.0.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/ecxsys.R
+9
-5
9 additions, 5 deletions
R/ecxsys.R
man/ecxsys.Rd
+1
-1
1 addition, 1 deletion
man/ecxsys.Rd
with
10 additions
and
6 deletions
R/ecxsys.R
+
9
−
5
View file @
20b96c8b
...
...
@@ -82,7 +82,7 @@
#' The control is approximated by the lowest non-control concentration times
#' 1e-7. The additional column \code{concentration_for_plots} is used by the
#' plotting functions of this package to approximate the control and
#' generate a
break in th
e concentration axis.}
#' generate a
nic
e concentration axis.}
#' }
#'
#' @examples model <- ecxsys(
...
...
@@ -315,7 +315,11 @@ ecxsys <- function(concentration,
)
output
$
curves
<-
predict_ecxsys
(
output
,
curves_concentration
)
conc_axis
<-
adjust_plot_concentrations
(
# Add a column of concentrations which helps in plotting. It does not make
# sense to show concentrations many orders of magnitude lower than the
# lowest measured concentration. So this cuts out a large chunk and raises
# the concentrations left of the cut so they make a nicer axis.
conc_axis
<-
make_axis_concentrations
(
curves_concentration
,
min_conc
,
conc_adjust_factor
...
...
@@ -443,9 +447,9 @@ interpolate <- function(x, to_index, n_new, conc = FALSE) {
}
adjust_plot
_concentrations
<-
function
(
concentration
,
min_conc
,
conc_adjust_factor
)
{
make_axis
_concentrations
<-
function
(
concentration
,
min_conc
,
conc_adjust_factor
)
{
# Deals with the concentrations which are unnecessary for plotting. This
# means it removes the concentrations in the gap and increases the
# concentrations below the gap.
...
...
This diff is collapsed.
Click to expand it.
man/ecxsys.Rd
+
1
−
1
View file @
20b96c8b
...
...
@@ -65,7 +65,7 @@ A list (of class ecxsys) containing many different objects of which
The control is approximated by the lowest non-control concentration times
1e-7. The additional column \code{concentration_for_plots} is used by the
plotting functions of this package to approximate the control and
generate a
break in th
e concentration axis.}
generate a
nic
e concentration axis.}
}
}
\description{
...
...
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