Returns the first n colors of the chosen palette. Beyond the seeds of the palette the
colors come from Polychrome::createPalette() if Polychrome is installed and
from grDevices::hcl.colors() otherwise. These extra colors are not
colorblind-safe; a colorblind-safe palette warns when it runs out of seeds.
Arguments
- n
Integer, number of colors.
- palette
Name of a qualitative palette, see
dMod2_palettes(). Defaults to"okabe".