dot-is_palette_sufficient: Check if palette has enough number of colors

.is_palette_sufficientR Documentation

Check if palette has enough number of colors

Description

Informs the user about not using the default color palette when the number of factor levels is greater than 8, the maximum number of colors allowed by "Dark2" palette from the {RColorBrewer} package.

Usage

.is_palette_sufficient(package, palette, min_length)

Examples

ggstatsplot:::.is_palette_sufficient("RColorBrewer", "Dark2", 6L)
ggstatsplot:::.is_palette_sufficient("RColorBrewer", "Dark2", 12L)


IndrajeetPatil/ggstatplot documentation built on April 26, 2024, 10:27 a.m.