View source: R/valueRangeExpression.R
vreScale2Colours | R Documentation |
vreScale2Colours
takes a value from a range and
scales it proportionally into a colour from a colour gradient.
vreScale2Colours(clr1, clr2, vMin, vMax, value)
clr1 |
The colour representing the lower value of the target range. |
clr2 |
The colour representing the upper value of the target range. |
vMin |
The lower value of the source range. |
vMax |
The upper value of the source range. |
value |
The source value to rescale into the target range. |
The value scaled into the target colour gradient.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.