okabeito_colors: Extract Okabe-Ito colors as hex codes

View source: R/scale_color_okabeito.R

okabeito_colorsR Documentation

Extract Okabe-Ito colors as hex codes

Description

Can be used to get the hex code of specific colors from the Okabe-Ito palette. Use okabeito_colors() to see all available colors.

Usage

okabeito_colors(..., original_names = FALSE, black_first = FALSE, amber = TRUE)

oi_colors(..., original_names = FALSE, black_first = FALSE, amber = TRUE)

Arguments

...

Character names of colors.

original_names

Logical. Should the colors be named using the original names used by Okabe and Ito (2008), such as "vermillion" (TRUE), or simplified names, such as "red" (FALSE, default)? Only used if no colors are specified (to see all available colors).

black_first

Logical. Should black be first (TRUE) or last (FALSE, default) in the color palette? Only used if no colors are specified (to see all available colors).

amber

If amber color should replace yellow in the palette.

Value

A character vector with color-codes.

Examples

okabeito_colors()

okabeito_colors(c("red", "light blue", "orange"))

okabeito_colors(original_names = TRUE)

okabeito_colors(black_first = TRUE)

see documentation built on June 22, 2024, 12:28 p.m.