Skip to contents

get_palette() returns a color palette (character vector of colors). Without arguments, prints names of available color palettes. Each palette is a named list of hexadecimal color definitions which can be used with any graphics function.

Usage

get_palette(palette = NULL, verbosity = 1L)

Arguments

palette

Character: Name of palette to return. Default = NULL: available palette names are printed and no palette is returned.

verbosity

Integer: Verbosity level.

Value

Character vector of colors for the specified palette, or invisibly returns list of available palettes if palette = NULL.

Author

EDG

Examples

# Print available palettes
get_palette()
#> 2026-02-22 18:59:27 
#> The following palettes are available:
#>  [get_palette]
#>  [1] "ucsfCol"             "pennCol"             "imperialCol"        
#>  [4] "stanfordCol"         "ucdCol"              "berkeleyCol"        
#>  [7] "ucscCol"             "ucmercedCol"         "ucsbCol"            
#> [10] "uclaCol"             "ucrColor"            "uciCol"             
#> [13] "ucsdCol"             "ucCol"               "scrippsCol"         
#> [16] "caltechCol"          "cmuCol"              "princetonCol"       
#> [19] "columbiaCol"         "yaleCol"             "brownCol"           
#> [22] "cornellCol"          "hmsCol"              "dartmouthCol"       
#> [25] "usfCol"              "uwCol"               "jhuCol"             
#> [28] "nyuCol"              "washuCol"            "chicagoCol"         
#> [31] "pennstateCol"        "msuCol"              "michiganCol"        
#> [34] "iowaCol"             "texasCol"            "techCol"            
#> [37] "jeffersonCol"        "hawaiiCol"           "nihCol"             
#> [40] "torontoCol"          "mcgillCol"           "uclCol"             
#> [43] "oxfordCol"           "nhsCol"              "ethCol"             
#> [46] "rwthCol"             "firefoxCol"          "mozillaCol"         
#> [49] "appleCol"            "googleCol"           "amazonCol"          
#> [52] "microsoftCol"        "pantoneBalancingAct" "pantoneWellspring"  
#> [55] "pantoneAmusements"   "grays"               "rtCol1"             
#> [58] "rtms"               
# Get the Imperial palette
get_palette("imperial")
#>         navy imperialBlue    lightGrey     coolGrey    lightBlue         blue 
#>    "#002147"    "#003E74"    "#EBEEEE"    "#9D9D9D"    "#D4EFFC"    "#006EAF" 
#>  processBlue     poolBlue     darkTeal         teal     seaglass    darkGreen 
#>    "#0091D4"    "#00ACD7"    "#0F8291"    "#009CBC"    "#379f9f"    "#02893B" 
#>  kermitGreen         lime       orange    tangerine  lemonYellow        brick 
#>    "#66A40A"    "#BBCE00"    "#D24000"    "#EC7300"    "#FFDD00"    "#A51900" 
#>          red       cherry    raspberry  magentaPink         iris       violet 
#>    "#DD2501"    "#E40043"    "#9F004E"    "#C81E78"    "#751E66"    "#960078" 
#>         plum       purple 
#>    "#321E6D"    "#653098"