Returns a colorblind-safe categorical color palette as a character vector of
hex codes, to pass explicitly to the palette argument of the
fviz_*() functions (e.g. fviz_cluster(res, palette =
factoextra_palette("okabe"))). The default is the Okabe-Ito
color-universal-design palette, which stays distinguishable under the common
forms of color-vision deficiency.
The palette is returned as a plain color vector (not a ggplot2 scale), for the
existing palette argument. Use it for discrete group coloring
(habillage, a factor col.ind, or clusters), where it also tints
the matching ellipse fills. For a continuous metric (e.g.
col.ind = "cos2") use gradient.cols instead — a categorical
palette does not apply there. It introduces no global option and no hidden
state. The colors are ordered so the highest-contrast hues come first; yellow,
the palest on a white background, is placed late, so plots with a few groups
stay crisp.
Read more: ggplot2 Colours in R: Change Colours by Group.