flexoki: Flexoki Color Palettes and Scales

flexokiR Documentation

Flexoki Color Palettes and Scales

Description

Color palettes and scales based on the Flexoki color scheme, a warm and soft color system designed by Steph Ango. Flexoki emphasizes readability and natural color harmony, making it particularly suitable for data visualization and long-form reading. The palette includes both light and dark variants, with each offering 8 distinct colors.

The name "Flexoki" combines "flexible" and "karaoke", reflecting its adaptable nature and harmonious color relationships.

Arguments

...

Additional arguments passed to scale_color_manual() or scale_fill_manual()

palette

For continuous scales, the name of the color palette to use (one of "red", "orange", "yellow", "green", "cyan", "blue", "purple", "magenta")

Details

The package provides several types of scales: * Discrete scales for both light and dark variants * Continuous scales with extended color ramps

The color palette includes: * Red: For emphasis and warnings * Orange: For secondary emphasis * Yellow: For highlighting * Green: For success states and nature-related data * Cyan: For information and water-related data * Blue: For primary elements and cool tones * Purple: For luxury and depth * Magenta: For creative and feminine contexts

Value

A ggplot2 scale object

References

Flexoki Color System: https://stephango.com/flexoki

Examples

library(ggplot2)

# Discrete color scale (light variant)
ggplot(mpg, aes(class, fill = class)) +
  geom_bar() +
  scale_fill_flexoki_light()

# Continuous color scale
ggplot(faithfuld, aes(waiting, eruptions, fill = density)) +
  geom_tile() +
  scale_fill_flexoki_continuous(palette = "blue")


hrbrmstr/hrbrthemes documentation built on Jan. 17, 2025, 7:32 p.m.