Hi
Please create a function for creating colour ramps with bins for ranges of values based on the code below. Initially, the parameters will be the "low colour", the "high colour", and the type name. The manual page should indicate that the resulting colour ramp only works for values between 0 and 1; thus, the values of interest need to be scaled from 0 to 1.
I fully understand that this is a short collection of code to create a colour ramp, but having a single function will reduce repeating this code for the various colour ramps created.
Hi Please create a function for creating colour ramps with bins for ranges of values based on the code below. Initially, the parameters will be the "low colour", the "high colour", and the
type
name. The manual page should indicate that the resulting colour ramp only works for values between0
and1
; thus, the values of interest need to be scaled from0
to1
.I fully understand that this is a short collection of code to create a colour ramp, but having a single function will reduce repeating this code for the various colour ramps created.
Thank you! Emilio