Skip to content
Join our email list to get $80 off Ally in November →
R for the Rest of Us Logo

Ally AI skill

Write Clean ggplot2 Code

Description

Generate, review, or refactor ggplot2 code in R following an opinionated set of best practices. Use whenever the user writes ggplot2 code, asks for ggplot2 help, picks a theme, tweaks scales, sets up faceting, or exports a plot. R-specific.

Installation

There are a number of ways to install skills. We made {ally}, an R package that simplifies the process. Learn more

Install {pak}:

install.packages("pak")

Then install {ally}:

pak::pak("rfortherestofus/ally")

You only need to do this once per computer.

After you've installed the {ally} package, choose whether you want to install the skill in this project or in all of your projects, then run the command.

ally::install_skill("https://github.com/holtzy/dataviz-skills/blob/main/ggplot2/SKILL.md")

This puts the skill in locations that all agents can read, inside this project, so anyone you're working with on the project can use it.

ally::install_skill("https://github.com/holtzy/dataviz-skills/blob/main/ggplot2/SKILL.md", scope = "user")

This puts the skill in locations that all agents can read, in your home folder, so every project you work on can use it.

Source Code

Name Last commit message Last commit date
README.md Keep ggplot2 and matplotlib skills to coding, credit co-authors 1 week ago
SKILL.md Keep ggplot2 and matplotlib skills to coding, credit co-authors 1 week ago