Description Usage Arguments Value
Return a colour string made up of r/g/b as desired with saturation scaled by b
1 2 3 4 5 6 7 8 | biasToColourString(
b,
colour = c("r", "g", "b"),
maxVal = 2.5,
minVal = 0,
minSaturation = 0.1,
maxSaturation = 0.9
)
|
b |
vector of values to use for saturations |
colour |
any of 'r', 'g', and 'b' to show channels used for saturation (other channels are filled with FF) |
maxVal |
maximum value for b |
minVal |
minimum value for b |
minSaturation |
minimum saturation value corresponding to minVal |
maxSaturation |
maximum saturation value corresponding to maxVal |
character vector same length as b containing colour strings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.