okcolors: Retrieve a Color Palette from the okcolors package

View source: R/palettes.R

okcolorsR Documentation

Retrieve a Color Palette from the okcolors package

Description

Returns a vector of 'n' colors from a specified palette included in the okcolors package.

Usage

okcolors(palette = "obsession", n = 5)

Arguments

palette

Character. Name of the palette to use. One of '"it"', '"stone"', '"skyscrapers"', '"obsession"', or '"moment"'. Default is '"obsession"'.

n

Integer. Number of colors to return. Default is '5'.

Details

The available palettes are:

  • "it" – dark reds to light pinks: "#330000" (dark maroon), "#660000" (deep red), "#cc0033" (vivid red), "#ff6699" (pink coral), "#ffcc99" (peach).

  • "stone" – earthy tones with pastels: "#bc8553" (bronze), "#dea466" (sand), "#ff99cc" (bubblegum pink), "#ffccff" (lavender blush), "#c3dda2" (sage).

  • "skyscrapers" – vibrant contrasting urban tones: "#ff3366" (raspberry), "#ff6633" (orange coral), "#ffcc66" (light gold), "#33cccc" (turquoise), "#663366" (plum).

  • "obsession" – bold and vivid colors for attention-grabbing visuals: "#45924c" (forest green), "#e96cd2" (orchid), "#4561cf" (royal blue), "#f44f49" (tomato red), "#f0cc36" (sunflower).

  • "moment" – saturated and modern hues: "#ffccff" (lavender blush), "#e96cd2" (orchid), "#ff3366" (raspberry), "#33cccc" (turquoise), "#f99841" (orange sherbet).

Value

A character vector of hex color codes of length 'n'.

Examples

okcolors("stone", 3)
okcolors("obsession", 7)


okcolors documentation built on June 8, 2025, 9:42 p.m.

Related to okcolors in okcolors...