color_discrete {distantia}R Documentation

Default Discrete Color Palettes

Description

Uses the function grDevices::palette.colors() to generate discrete color palettes using the following rules:

Usage

color_discrete(n = NULL, rev = FALSE)

Arguments

n

(required, integer) number of colors to generate. Default = NULL

rev

(optional, logical) If TRUE, the color palette is reversed. Default: FALSE

Value

color vector

See Also

Other internal_plotting: color_continuous(), utils_color_breaks(), utils_line_color(), utils_line_guide(), utils_matrix_guide(), utils_matrix_plot()

Examples


color_discrete(n = 9)

[Package distantia version 2.0.2 Index]