makeColorScale: Make a color palette of a specified length

View source: R/colormaker.R

makeColorScaleR Documentation

Make a color palette of a specified length

Description

Given an integer, make a palette with a specified number of colors using palettes from RColorBrewer, and interpolation where necessary.

Usage

makeColorScale(ncolors, palette = "Set1")

Arguments

ncolors

Integer specifying the number of colors

palette

RColorBrewer palette name. (default: 'Set1')

Value

output Character vector of colors

Examples

makeColorScale(10)


pinin4fjords/shinyngs documentation built on Jan. 18, 2025, 7:09 p.m.