If you use R the preferred way to handle color palettes is to use choose_palette() or hclwizard() on your local machine. Both graphical user interfaces return an R color palette function. However, you can also use the function call below to use the current palette in your R scripts.
## Custom color palette