RSScols {RSSthemes}R Documentation

Generates the colour palettes

Description

Generates the colour palettes

Usage

RSScols(palette, n, type = "discrete", direction = 1)

Arguments

palette

Name of Palette. Run names(RSSPalettes) to view options.

n

Number of desired colors. If number of requested colors is beyond the scope of the palette, colors are automatically interpolated. If n is not provided, the length of the palette is used.

type

Either "continuous" or "discrete". Use continuous if you want to automatically interpolate between colors. Default "discrete"

direction

Sets order of colors. Default palette is 1. If direction is -1, palette color order is reversed

Value

A character vector of hex colour codes.

Examples

RSScols("signif_seq")

[Package RSSthemes version 1.0.0 Index]