Learn R Programming

simplevis (version 6.4.0)

pal_viridis_mix: Viridis palette reordered.

Description

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

Usage

pal_viridis_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_viridis_mix(9)) 

Run the code above in your browser using DataLab