Used to obtain a colour palette of a given name. A list of available palettes can be obtained by `cat_palette_names()` and `cont_palette_names()`.

inzpalette(palette)

cat_palette_names()

cont_palette_names()

Arguments

palette

the name of a palette

Value

a colour palette function with single argument `n`

Functions

  • cat_palette_names(): List of categorical colour palettes

  • cont_palette_names(): List of continuous colour palettes

Author

Tom Elliott

Examples

plot(1:5, pch = 19, col = inzpalette("bright")(5))


# for a list of palette names
cat_palette_names()
#> $contrast
#> [1] "contrast (max 8)"
#> 
#> $bright
#> [1] "bright (max 9)"
#> 
#> $light
#> [1] "light (max 12)"
#> 
#> $viridis
#> [1] "viridis"
#> 
#> $magma
#> [1] "magma"
#> 
#> $plasma
#> [1] "plasma"
#> 
#> $inferno
#> [1] "inferno"
#> 
#> $colourblind
#> [1] "Colourblind friendly"
#> 
#> $rainbow
#> [1] "rainbow (hcl)"
#> 
cont_palette_names()
#> $viridis
#> [1] "viridis"
#> 
#> $magma
#> [1] "magma"
#> 
#> $plasma
#> [1] "plasma"
#> 
#> $inferno
#> [1] "inferno"
#> 
#> $rainbow
#> [1] "rainbow (hcl)"
#> 
#> $blue
#> [1] "blue"
#> 
#> $green
#> [1] "green"
#> 
#> $red
#> [1] "red"
#> 
#> $greenyellow
#> [1] "green-yellow"
#> 
#> $redblue
#> [1] "red-blue"
#> 
#> $terrain
#> [1] "terrain"
#> 
#> $heat
#> [1] "heat"
#> 
#> $bluewhitepink
#> [1] "bluewhitepink"
#> 
#> $bluewhitered
#> [1] "bluewhitered"
#>