The adjustment function (adj.fxn, e.g. log10) is applied first, then the
adjustment rescales the result ("z-score" or "relative.to.max"). That is
the order a transform and a standardisation are normally combined in: log
first, then z-score. dittoViz applies them the other way round when given both,
which turns every below-average value into log() of a negative number, so the
modules hand dittoViz this whole transform as its function instead (see
adjustment_fn()).
Arguments
- values
Vector of values, normally one column of the plotted data.
- adjustment
NULL,"","z-score"or"relative.to.max".- adj.fxn
NULL,"", a name accepted bysafe_resolve_adj_fxn(), or a function.
Details
The rescaling is computed over the finite values only, so a value the function
makes non-finite (log(0)) is dropped from the plot rather than turning the
whole column into NaN.
Anything drawn over an adjusted plot (significance brackets, fit lines, axis limits) has to be computed from these values, not the raw column, or it lands in a different coordinate space from the data.