Skip to contents

dittoViz applies its *.adjustment before its *.adj.fxn. Passing it this function as *.adj.fxn, with no *.adjustment, has it plot adjusted_values() instead, while it still builds its adjusted columns, hover text and multi-variable reshape as usual.

Usage

adjustment_fn(adjustment = NULL, adj.fxn = NULL)

Arguments

adjustment, adj.fxn

Passed to adjusted_values().

Value

A function of one vector, or NULL when neither is set.

Author

Jared Andrews

Examples

fn <- adjustment_fn(adjustment = "z-score", adj.fxn = "log10")
fn(c(1, 10, 100))
#> [1] -1  0  1
adjustment_fn()
#> NULL