b_color( colors, priors =NULL, hsv =FALSE, warmup =1000, iter =2000, chains =4, seed =NULL, refresh =NULL, control =NULL, suppress_warnings =TRUE)
Arguments
colors: a data frame of colors either in RGB or HSV format. The first column should be the R (or H) component, the second column should be the G (or S) component and the third column should be the B (or V) component.
priors: List of parameters and their priors - b_prior objects. You can put a prior on the mu_r (mean r component), sigma_r (variance of mu_r), mu_g (mean g component), sigma_g (variance of mu_g), mu_b (mean b component), sigma_b (variance of mu_b), mu_h (mean h component), kappa_h (variance of mu_h), mu_s (mean s component), sigma_s (variance of mu_s), mu_v (mean v component) and sigma_v (variance of mu_v) parameters (default = NULL).
hsv: set to TRUE if colors are provided in HSV format (default = FALSE).
warmup: Integer specifying the number of warmup iterations per chain (default = 1000).
iter: Integer specifying the number of iterations (including warmup, default = 2000).
chains: Integer specifying the number of parallel chains (default = 4).
seed: Random number generator seed (default = NULL).
refresh: Frequency of output (default = NULL).
control: A named list of parameters to control the sampler's behavior (default = NULL).
suppress_warnings: Suppress warnings returned by Stan (default = TRUE).