gscaleVersion: 4.1On this pagescaleFunctions​ linear()​ g.scale.linear(domain, range, value) Return the value from the domain interval linearly scaled to the range interval. Both domain and range intervals must be specified as arrays with two numbers specifying start and end of the interval.