# r-visuals

r-visuals is a Claude Code skill for creating R visuals, including ggplot2 statistical charts, in PBIR reports.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 1104 repo stars
- Author: Kurt Buhler
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/data-goblin/power-bi-agentic-development/tree/HEAD/plugins/custom-visuals/skills/r-visuals/SKILL.md
- Updated: 2026-10-28
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/r-visuals

## What it does

The skill guides the agent through adding a `scriptVisual`, writing an R script, and applying it to a report with `pbir`. Power BI supplies the data as a `dataset` data frame. A ggplot2 plot must be explicitly rendered with `print(p)`, and the `r-reviewer` subagent checks the script before it is presented.

The result is a static PNG, not an interactive chart. Power BI Service runs R 4.3.3 and supports the packages listed in the instructions; packages that need network access are unsupported there. Desktop requires R to be installed separately. Report changes go through `pbir`; when the CLI lacks an operation, the skill says to stop rather than edit report JSON directly.

That static output cannot act as a cross-filter source. The documented row limit is 150,000, with a timeout of 5 minutes in Desktop and 1 minute in Service.

## Requirements
- Works with: Power BI

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add data-goblin/power-bi-agentic-development
```
In the agent chat (not a shell):
```text
/plugin install custom-visuals@power-bi-agentic-development
```
This installs the whole custom-visuals plugin with all its skills

2. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill r-visuals -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/r-visuals/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/r-visuals/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill r-visuals -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/r-visuals/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill r-visuals -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/r-visuals/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install data-goblin/power-bi-agentic-development plugins/custom-visuals/skills/r-visuals
```

2. **Manually: put the files in place**
- File: `.github/skills/r-visuals/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill r-visuals -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/data-goblin/power-bi-agentic-development --path plugins/custom-visuals/skills/r-visuals
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/r-visuals/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/data-goblin/power-bi-agentic-development/tree/HEAD/plugins/custom-visuals/skills/r-visuals/SKILL.md

## When to use it
- create an R visual for a Power BI report
- add a ggplot2 chart to a report page
- inject an R script into a PBIR visual
- validate a visual script and bind it to report data

## Example prompts
- Create an R visual for revenue by date in my Power BI report.
- Write a ggplot2 script for this report and add it with `pbir`.
- Check the R visual script, then validate the report with `pbir validate`.

## Similar
- [Horizun PBI MCP](https://affpapa.org/en/nevibecode/mcp/horizun-pbi-mcp.md) — MCP server · ★ 34 repo stars
- [power-bi-custom-visuals-development](https://affpapa.org/en/nevibecode/rules/power-bi-custom-visuals-development.md) — rule · ★ 41430 repo stars
- [powerbi-modeling](https://affpapa.org/en/nevibecode/skills/powerbi-modeling.md) — skill · 9934 installs
- [power-bi-build](https://affpapa.org/en/nevibecode/skills/power-bi-build.md) — skill · 688 installs
- [power-bi-salespulse-360-dashboard](https://affpapa.org/en/nevibecode/skills/power-bi-salespulse-360-dashboard.md) — skill · 661 installs
- [logifleet-pulse-supply-chain-analytics](https://affpapa.org/en/nevibecode/skills/logifleet-pulse-supply-chain-analytics.md) — skill · 659 installs

From the same set: [data-goblin/power-bi-agentic-development](https://affpapa.org/en/nevibecode/by/data-goblin/power-bi-agentic-development.md) — 59 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
