Learn R Programming

LSD (version 2.0)

distinctcolors: Distinctcolors

Description

find a vector of n distinct colors by laying a grid into the RGB colorspace

Usage

distinctcolors(n = 20, bw = FALSE, show = FALSE, maxvalue = 255)

Arguments

n
number of colors to be used
bw
should black and white be removed
show
should colors be plotted
maxvalue
maximal color value (rgb scheme)

See Also

disco,display.colorpalette,LSD.demo.tour

Examples

Run this code
demo.distinctcolors()

Run the code above in your browser using DataLab