powered by
This helper function defines a color scheme for visualizations in the {fHMM} package.
fHMM_colors(controls, colors = NULL)
An object of class fHMM_colors, which is:
fHMM_colors
for controls$hierarchy == FALSE a character vector of length controls$states of color codes,
controls$hierarchy == FALSE
character
controls$states
for controls$hierarchy == TRUE a list of
controls$hierarchy == TRUE
list
a character vector of length controls$states[1] and
controls$states[1]
a character matrix of dimensions controls$states
with color codes.
An object of class fHMM_controls. It can be created with set_controls.
fHMM_controls
set_controls
Either NULL (default) or a character vector of color names or hexadecimal RGB triplets.
NULL
if (FALSE) { controls <- set_controls() fHMM_colors(controls, colors = c("red", "blue")) }
Run the code above in your browser using DataLab