ai-skills/ggplot2

ggplot2

Publication-ready charts in R, following an opinionated set of ggplot2 best practices.

No install. Give your AI the link to the skill.

Read https://github.com/holtzy/dataviz-skills/blob/main/ggplot2/SKILL.md
and use it to write my chart in ggplot2.

Works with any assistant that can open a URL. Otherwise, paste the content of the SKILL.md file instead.

By Yan Holtz and Cédric Scherer · Updated November 5, 2026

📚 Based on the ggplot2 Uncharted course
ggplot2 code in R, seen at an angle

What it does

  • Writes tidy, idiomatic ggplot2 code.
  • Sets a clean theme, readable scales and legends.
  • Handles faceting and export settings.
  • Avoids the most common ggplot2 pitfalls.

When to use it

Whenever you write, fix or refactor ggplot2 code. It covers the code: the chart design comes from the other skills.