Learn R Programming

iNZightPlots (version 2.16.0)

inzpalette: iNZight colour palette

Description

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()`.

Usage

inzpalette(palette)

cat_palette_names()

cont_palette_names()

Value

a colour palette function with single argument `n`

Arguments

palette

the name of a palette

Functions

  • cat_palette_names(): List of categorical colour palettes

  • cont_palette_names(): List of continuous colour palettes

Author

Tom Elliott

Examples

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

# for a list of palette names
cat_palette_names()
cont_palette_names()

Run the code above in your browser using DataLab