getHistColors: Vector of hex colors for histogram bin coloration

Description Usage Arguments Value Examples

View source: R/02a_histogram_color_clustering.R

Description

Gets a vector of colors for plotting histograms from getImageHist in helpful ways.

Usage

1

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

1
2
colordistance:::getHistColors(bins = 3)
colordistance:::getHistColors(bins = c(8, 3, 3), hsv = TRUE)

colordistance documentation built on March 21, 2021, 1:06 a.m.