biasToColourString: Return a colour string made up of r/g/b as desired with...

Description Usage Arguments Value

View source: R/results.R

Description

Return a colour string made up of r/g/b as desired with saturation scaled by b

Usage

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
)

Arguments

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

Value

character vector same length as b containing colour strings


oxacclab/adviseR documentation built on Oct. 7, 2021, 8:05 p.m.