o data coordinates</span></span>
<span id="cb7-14"><a href="#cb7-14" aria-hidden="true" tabindex="-1"></a>  new_range_transform <span class="ot">&lt;-</span> <span class="cf">function</span>(x_old, range_old, range_new) {</span>
<span id="cb7-15"><a href="#cb7-15" aria-hidden="true" tabindex="-1"></a>    (x_old <span class="sc">-</span> range_old[<span class="dv">1</span>])<span class="sc">/</span>(range_old[<span class="dv">2</span>] <span class="sc">-</span> range_old[<span class="dv">1</span>]) <span cla