coursekata_palette_provider {coursekata} | R Documentation |
Create a function that provides a colorblind palette.
Description
Create a function that provides a colorblind palette.
Usage
coursekata_palette_provider()
Value
A function that accepts one argument n
, which is the number of colors you want to use
in the plot. This function is used by scales like scale_color_discrete
to provide colorblind-
safe palettes. Where possible, the function will use the hand-picked colors from
coursekata_palette()
, and when more colors are needed than are available, it will use the
viridisLite::viridis()
palette.
See Also
scale_discrete_coursekata
[Package coursekata version 0.17.0 Index]