dt_rescale: Rescale variables to common scale

Description Usage Arguments Details Value

View source: R/dt_rescale.R

Description

Purely for visualization purposes.

Usage

1
dt_rescale(x, new.min = -3, new.max = 3, na.rm = TRUE)

Arguments

x

vector of numeric values

new.min

numeric, lower bound for rescale

new.max

numeric, upper bound for rescale

na.rm

logical, whether to ignore NA values

Details

When you want your plots to share a single legend without washing out the variance, you have to rescale the variables. Code borrowed from this stackexchange.

Value

vector


kbvernon/deseRt documentation built on May 27, 2020, 11:44 p.m.