Skip to contents

[Stable]

Generate list of palettes for plots.

Usage

getPalettes()

Value

A character vector of palette names.

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.

Author

Michael Neely

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"