Learn R Programming

gghdx (version 0.1.4)

hdx_display_pal: Display HDX palette

Description

Displays the HDX color palettes. By default, shows all values for all palettes. You can change the number of values for each palette or only show a subset of the available palettes (from hdx_pal_...()).

Usage

hdx_display_pal(
  n = NULL,
  palette = c("discrete", "gray", "mint", "sapphire", "tomato")
)

Value

Plot of HDX color palettes.

Arguments

n

Number of colors for each palette to show.

palette

Character vector of palettes to show.

Examples

Run this code
hdx_display_pal()
hdx_display_pal(n = 3)

Run the code above in your browser using DataLab