What function can I use to emulate ggplot2’s default color palette for a desired number of colors. For example, an input of 3 would produce a character vector of HEX colors with these colors:

What function can I use to emulate ggplot2’s default color palette for a desired
Share
It is just equally spaced hues around the color wheel, starting from 15:
For example: