gg_colour_hue: Emulate 'ggplot2' default colour palette

Description Usage Arguments Details

Description

Emulate ggplot2 default colour palette. ipriorColPal and ggColPal are DEPRECATED.

Usage

1
2
3
4
5
6
7
8
9
gg_colour_hue(x, h = c(0, 360) + 15, c = 100, l = 65)

gg_color_hue(x, h = c(0, 360) + 15, c = 100, l = 65)

gg_col_hue(x, h = c(0, 360) + 15, c = 100, l = 65)

ipriorColPal(x)

ggColPal(x)

Arguments

x

The number of colours required.

h

Range of hues to use, in [0, 360].

c

Chroma (intensity of colour), maximum value varies depending on combination of hue and luminance.

l

Luminance (lightness), in [0, 100].

Details

This is the default colour scale for categorical variables in ggplot2. It maps each level to an evenly spaced hue on the colour wheel. It does not generate colour-blind safe palettes.

ipriorColPal() used to provide the colour palette for the iprior package, but this has been changed ggplot2's colour palette instead.


iprior documentation built on May 2, 2019, 3:21 a.m.