bit12: Bit12 Color Palettes and Scales

bit12R Documentation

Bit12 Color Palettes and Scales

Description

Color palettes and scales based on the Bit12 color scheme, a vibrant 12-color system designed for clear data visualization. The palette offers a complete spectrum of distinct colors that work well for categorical data while maintaining good contrast and accessibility.

A vector of 12 colors in the Bit12 color scheme

Usage

bit12

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 "plum", "rose", "coral", "apricot", "lemon", "lime", "mint", "teal", "sky", "azure", "cobalt", "violet")

Format

A named character vector of hex color codes

Details

The package provides several types of scales: * Discrete scales for categorical data * Continuous scales with extended color ramps

The color palette includes: * Plum: Deep purple for emphasis * Rose: Rich pink-red for highlighting important elements * Coral: Soft reddish-orange for warm secondary elements * Apricot: Muted orange for highlighting * Lemon: Bright yellow for high visibility elements * Lime: Fresh green for positive values and growth * Mint: Cool green-blue for calm elements * Teal: Balanced blue-green for neutral data * Sky: Light blue for information elements * Azure: Clear blue for primary interactions * Cobalt: Deep blue for stability and reliability * Violet: Purple for creative and distinctive elements

Value

A ggplot2 scale object

Examples

library(ggplot2)

# Discrete color scale
ggplot(mpg, aes(class, fill = class)) +
  geom_bar() +
  scale_fill_bit12()

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


hrbrmstr/hrbrthemes documentation built on June 13, 2025, 8:38 a.m.