EKIO Visual Identity for 'ggplot2'

Implements EKIO's visual identity for data visualization with 'ggplot2'. Supplies a coordinated theme, color palettes, discrete and continuous scales, and helpers for accessible text contrast. Includes high-level recipes for common charts so analysts can create consistent, publication-ready graphics with concise code.


ekioplot

Lifecycle:experimental R-universe R-CMD-check

Overview

ekioplot implements EKIO’s visual identity system for data visualization in R.

library(ekioplot)
library(ggplot2)

ggplot(mtcars, aes(wt, mpg, color = factor(cyl))) +
  geom_point(size = 3) +
  scale_color_ekio_d("full") +
  labs(
    title = "Fuel Efficiency vs. Weight",
    subtitle = "Motor Trend Car Road Tests (1974)",
    x = "Weight (1000 lbs)",
    y = "Miles per Gallon",
    color = "Cylinders"
  ) +
  theme_ekio()
Scatter plot of fuel economy against weight for the mtcars data, points coloured by cylinder count with the full palette, drawn in theme_ekio().

Installation

Install the released version from CRAN:

install.packages("ekioplot")

Install the development version from r-universe:

install.packages(
  "ekioplot",
  repos = c(
    "https://viniciusoike.r-universe.dev",
    "https://cloud.r-project.org"
  )
)

Alternatively, install the development version from GitHub.

# install.packages("pak")
pak::pak("viniciusoike/ekioplot")

Themes

theme_ekio() applies EKIO’s visual identity to any ggplot2 plot, building on theme_minimal() with curated typography, spacing, and color. The grid argument controls which major grid lines are drawn ("y", "x", "xy", or "none").

theme_ekio(grid = "xy")

Color palettes

ekioplot ships palettes across five groups, all accessible through a single function. The seven brand scales are generated from one OKLCH specification, so a given shade carries the same visual weight in every family.

Compact categorical palettes ("cool3", "cool4") cover small groups; "full_muted" provides a quieter eight-color alternative. Variable-size accent palettes keep blue or orange prominent against two to six series.

ekio_pal()
ekio_pal("accent_blue", n = 5)
Ten selected EKIO palettes drawn as horizontal colour strips, including the new compact categorical and variable-size accent palettes.

Scales

Discrete and continuous scales are provided for both color and fill.

# Discrete (categorical palettes)
scale_color_ekio_d("full")
scale_fill_ekio_d("full")

# Continuous (sequential / diverging palettes)
scale_color_ekio_c("blue")
scale_fill_ekio_c("blue_orange")

Recipe functions

High-level builders create complete, publication-ready plots with smart defaults.

Four panels showing ekio_scatterplot(), ekio_barplot(), ekio_lineplot() and ekio_areaplot(), each labelled with the function that drew it.

See more

See vignette("getting-started", package = "ekioplot"), the palette gallery, and the package website at https://viniciusoike.github.io/ekioplot/.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ekioplot")

1.1.0 by Vinicius Oike, a month ago


https://viniciusoike.github.io/ekioplot/, https://github.com/viniciusoike/ekioplot


Browse source code at https://github.com/cran/ekioplot


Authors: Vinicius Oike [aut, cre, cph] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports cli, ggplot2, grDevices, rlang, systemfonts

Suggests dplyr, knitr, rmarkdown, testthat, tibble, yaml


Suggested by trendseries.


See at CRAN