dot-variable_scaler: Rescale a secondary-axis variable into primary-axis...

.variable_scalerR Documentation

Rescale a secondary-axis variable into primary-axis coordinates

Description

Used by the distribution plots (LCD/LRD/TRP) to overlay a frequency polygon on a bar chart with a different y-scale.

Usage

.variable_scaler(y2, yaxis1, yaxis2)

Arguments

y2

Values on the secondary scale.

yaxis1

Range (min, max) of the primary axis.

yaxis2

Range (min, max) of the secondary axis.

Value

y2 linearly mapped into primary-axis coordinates.


ggExametrika documentation built on Nov. 25, 2026, 9:07 a.m.