Learn R Programming

gghdx (version 0.1.4)

hdx_pal_discrete: HDX color palette (discrete)

Description

The hues in the HDX palette are sapphire, mint, and tomato.

Usage

hdx_pal_discrete()

hdx_pal_sapphire()

hdx_pal_tomato()

hdx_pal_mint()

hdx_pal_gray()

Arguments

Value

A palette function.

Details

hdx_pal_discrete() utilizes all hues for up to a 12 element discrete scale.

hdx_pal_mint(), hdx_pal_tomato(), and hdx_pal_sapphire() allow for a 4 element discrete scale using only the specified color. These are color ramps with a range from dark, normal (HDX standard), light, and ultra light.

See Also

Other color hdx: hdx_color_list, hdx_colors()

Examples

Run this code
hist(mtcars$mpg, col = hdx_pal_discrete()(5))

Run the code above in your browser using DataLab