R/biDimColors.R, R/uniDimColors.R
itemScaleColours.RdCreate colours for a response scale for an item
biDimColors(start, mid, end, length, show = TRUE) uniDimColors(start, end, length, show = TRUE)
| start | Color to start with |
|---|---|
| mid | Color in the middle, for bidimensional scales |
| end | Color to end with |
| length | The number of response options |
| show | Whether to show the colours |
The colours as hex codes.
uniDimColors("#000000", "#00BB00", length=5, show=FALSE); #> [1] "#000000" "#002E00" "#005D00" "#008C00" "#00BB00"