ggHueColours: ggplot-esque colours from scale_colours_hue()

Description Usage Arguments Value Author(s)

Description

A colour palette that returns colours akin to those used by ggplot for discrete colour scales.

Usage

1
2
  ggHueColours(n, h = c(0, 360) + 15, l = 65, c = 100,
    direction = 1, h.start = 0)

Arguments

n

integer; number of colours to generate

h

numeric; length 2 giving range of hues to use, in [0, 360]

l

numeric; luminance (lightness), in [0, 100]

c

numeric; chroma (colour intensity)

direction

numeric; direction to travel around the colour wheel, 1 = clockwise, -1 = counter-clockwise

h.start

numeric; hue to start at

Value

A vector of character strings which can be used as colour specifications by R graphics functions.

Author(s)

Gavin L. Simpson based on code by Hadley Wickham in his ggplot2 package.


gavinsimpson/gavmisc documentation built on May 16, 2019, 10:10 p.m.