fHMM_colors {fHMM} | R Documentation |
Set color scheme for visualizations
Description
This helper function defines a color scheme for visualizations in the {fHMM} package.
Usage
fHMM_colors(controls, colors = NULL)
Arguments
controls |
An object of class |
colors |
Either |
Value
An object of class fHMM_colors
, which is:
for
controls$hierarchy == FALSE
acharacter
vector of lengthcontrols$states
of color codes,for
controls$hierarchy == TRUE
alist
ofa
character
vector of lengthcontrols$states[1]
anda
character
matrix of dimensionscontrols$states
with color codes.
Examples
## Not run:
controls <- set_controls()
fHMM_colors(controls, colors = c("red", "blue"))
## End(Not run)
[Package fHMM version 1.4.1 Index]