getHistColors {colordistance} | R Documentation |
Vector of hex colors for histogram bin coloration
Description
Gets a vector of colors for plotting histograms from
getImageHist
in helpful ways.
Usage
getHistColors(bins, hsv = FALSE)
Arguments
bins |
Number of bins for each channel OR a vector of length 3 with bins for each channel. Bins = 3 will result in 3^3 = 27 bins; bins = c(2, 2, 3) will result in 2 * 2 * 3 = 12 bins (2 red, 2 green, 3 blue), etc. |
hsv |
Logical. Should HSV be used instead of RGB? |
Value
A vector of hex codes for bin colors.
Examples
colordistance:::getHistColors(bins = 3)
colordistance:::getHistColors(bins = c(8, 3, 3), hsv = TRUE)
[Package colordistance version 1.1.2 Index]