fHMM_colors | R Documentation |
This helper function defines a color scheme for visualizations in the {fHMM} package.
fHMM_colors(controls, colors = NULL)
controls |
An object of class |
colors |
Either |
An object of class fHMM_colors
, which is:
for controls$hierarchy == FALSE
a character
vector of
length controls$states
of color codes,
for controls$hierarchy == TRUE
a list
of
a character
vector of length controls$states[1]
and
a character
matrix of dimensions controls$states
with color codes.
## Not run:
controls <- set_controls()
fHMM_colors(controls, colors = c("red", "blue"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.