If you need two colours in a categorical palette, scale_colour/fill_discrete_af currently returns the info message "Using main2 palette as only two colours are required.". This could potentially be annoying if you produce a lot of charts and might be confusing for new users.
Options include
-
Leave info message as is
-
Have a package option with verbose = FALSE to allow users to switch off the message
-
Update the function documentation to make it clear when the main2 palette will be used.
If you need two colours in a categorical palette,
scale_colour/fill_discrete_afcurrently returns the info message "Usingmain2palette as only two colours are required.". This could potentially be annoying if you produce a lot of charts and might be confusing for new users.Options include
Leave info message as is
Have a package option with
verbose = FALSEto allow users to switch off the messageUpdate the function documentation to make it clear when the main2 palette will be used.