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

Exlain the axis gap in the docu and comments, closes #24.

parent 36d53bc6
No related branches found
No related tags found
1 merge request!30version 3.0.0
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
#' The control is approximated by the lowest non-control concentration times #' The control is approximated by the lowest non-control concentration times
#' 1e-7. The additional column \code{concentration_for_plots} is used by the #' 1e-7. The additional column \code{concentration_for_plots} is used by the
#' plotting functions of this package to approximate the control and #' plotting functions of this package to approximate the control and
#' generate a break in the concentration axis.} #' generate a nice concentration axis.}
#' } #' }
#' #'
#' @examples model <- ecxsys( #' @examples model <- ecxsys(
...@@ -315,7 +315,11 @@ ecxsys <- function(concentration, ...@@ -315,7 +315,11 @@ ecxsys <- function(concentration,
) )
output$curves <- predict_ecxsys(output, curves_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, curves_concentration,
min_conc, min_conc,
conc_adjust_factor conc_adjust_factor
...@@ -443,9 +447,9 @@ interpolate <- function(x, to_index, n_new, conc = FALSE) { ...@@ -443,9 +447,9 @@ interpolate <- function(x, to_index, n_new, conc = FALSE) {
} }
adjust_plot_concentrations <- function(concentration, make_axis_concentrations <- function(concentration,
min_conc, min_conc,
conc_adjust_factor) { conc_adjust_factor) {
# Deals with the concentrations which are unnecessary for plotting. This # Deals with the concentrations which are unnecessary for plotting. This
# means it removes the concentrations in the gap and increases the # means it removes the concentrations in the gap and increases the
# concentrations below the gap. # concentrations below the gap.
......
...@@ -65,7 +65,7 @@ A list (of class ecxsys) containing many different objects of which ...@@ -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 The control is approximated by the lowest non-control concentration times
1e-7. The additional column \code{concentration_for_plots} is used by the 1e-7. The additional column \code{concentration_for_plots} is used by the
plotting functions of this package to approximate the control and plotting functions of this package to approximate the control and
generate a break in the concentration axis.} generate a nice concentration axis.}
} }
} }
\description{ \description{
......
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