Learn R Programming

toaster (version 0.3.1)

getDiscretePaletteFactory: Generate discrete palette maker

Description

Generate discrete palette maker

Usage

getDiscretePaletteFactory(paletteName = "Set1")

Arguments

paletteName
name of palette from brewer.pal.info in RColorBrewer package

Value

  • function (factory) that creates discrete palette with for number of colors

See Also

getGradientPaletteFactory, colorRampPalette

Examples

Run this code
paletteMaker = getDiscretePaletteFactory("PuOr")
myPalette = paletteMaker(25)

Run the code above in your browser using DataLab