ggstatsplot (version 0.0.10)

palette_message: Message if palette doesn't have enough number of colors.

Description

A note to 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

palette_message(package, palette, min_length)

Arguments

package

Name of package from which the palette is desired as string or symbol.

palette

Name of palette as string or symbol.

min_length

Minimum number of colors needed.

See Also

Other helper_messages: bartlett_message, effsize_ci_message, ggcorrmat_matrix_message, grouped_message, normality_message, pairwise_p

Examples

Run this code
# NOT RUN {
ggstatsplot:::palette_message(
  package = "RColorBrewer",
  palette = "Dark2",
  min_length = 20
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace