Details
If RColorBrewer package is installed, will return the list of palette names from RColorBrewer::brewer.pal.info. If not, will return the current list as of April 2024.
Examples
getPalettes()
#> [1] "BrBG" "PiYG" "PRGn" "PuOr" "RdBu" "RdGy"
#> [7] "RdYlBu" "RdYlGn" "Spectral" "Accent" "Dark2" "Paired"
#> [13] "Pastel1" "Pastel2" "Set1" "Set2" "Set3" "Blues"
#> [19] "BuGn" "BuPu" "GnBu" "Greens" "Greys" "Oranges"
#> [25] "OrRd" "PuBu" "PuBuGn" "PuRd" "Purples" "RdPu"
#> [31] "Reds" "YlGn" "YlGnBu" "YlOrBr" "YlOrRd"