Description Usage Arguments Value Examples
View source: R/02a_histogram_color_clustering.R
Gets a vector of colors for plotting histograms from
getImageHist
in helpful ways.
1 | getHistColors(bins, hsv = FALSE)
|
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? |
A vector of hex codes for bin colors.
1 2 | colordistance:::getHistColors(bins = 3)
colordistance:::getHistColors(bins = c(8, 3, 3), hsv = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.