gg_colour_hue: Get n Colours

View source: R/gg_colour_hue.R

gg_colour_hueR Documentation

Get n Colours

Description

Get n colours, evenly spaced along the colour wheel. Just like the ones ggplot2::scale_colour_hue() is using.

Usage

gg_colour_hue(n)

Arguments

n

Either the number of colours to generate, or a character vector which will be used as names for the returned colours.

Value

A vector of character strings which can be used as color specifications by R graphics functions. The vector is named if n is a character vector.

Examples

gg_colour_hue(5)
gg_colour_hue(letters[1:3])


pik-piam/quitte documentation built on April 26, 2024, 12:58 a.m.