Learn R Programming

simplevis (version 4.2.0)

pal_viridis_reorder: Viridis palette reordered.

Description

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

Usage

pal_viridis_reorder(col_n)

Arguments

col_n

The number of colours (excluding an NA colour).

Value

A vector of hex codes.

Examples

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

Run the code above in your browser using DataLab