Learn R Programming

simplevis (version 4.5.0)

pal_d3_reorder: D3 palette reordered.

Description

A function to retreive a vector of hex codes for a non-numeric (or non-ordererd) variable.

Usage

pal_d3_reorder(col_n)

Arguments

col_n

The number of colours (excluding an NA colour).

Value

A character vector of hex codes.

Examples

Run this code
# NOT RUN {
scales::show_col(pal_d3_reorder(9)) 
# }

Run the code above in your browser using DataLab