| okcolors | R Documentation |
Returns a vector of 'n' colors from a specified palette included in the okcolors package.
okcolors(palette = "obsession", n = 5)
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'. |
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).
A character vector of hex color codes of length 'n'.
okcolors("stone", 3)
okcolors("obsession", 7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.