Learn R Programming

simplevis (version 6.4.0)

pal_d3_mix: D3 palette reordered.

Description

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

Usage

pal_d3_mix(n)

Value

A character vector of hex codes.

Arguments

n

The number of colours (excluding an NA colour).

Examples

Run this code
scales::show_col(pal_d3_mix(9)) 

Run the code above in your browser using DataLab