emphasize_pal_colour {iNZightPlots} | R Documentation

## Emphasize a level or interval of a colour palette

### Description

Emphasize a level or interval of a colour palette

### Usage

    emphasize_pal_colour(n, k, cat = TRUE, ncat = 5, fn)

### Arguments

`n` | the number of colours to draw from the palette
`k` | the index of the colour to emphasize
`cat` | logical indicator if palette is categorical or numeric
`ncat` | the number of intervals to use for continuous palettes
`fn` | the colour palette function to use

### Value

a colour palette, with one level emphasized (or range for numeric)

### Author(s)

Tom Elliott

### Examples

    pal <- inzpalette("bright")
    plot(1:5, pch = 19, col = emphasize_pal_colour(5, 2, fn = pal))

[Package iNZightPlots version 2.14.1 Index]