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