r-visuals — Claude Code skill for R visuals in Power BI
r-visuals is a Claude Code skill for creating R visuals, including ggplot2 statistical charts, in PBIR reports.
GPL-3.0 ★ 1,104 updated 2026-10-28
/plugin marketplace add data-goblin/power-bi-agentic-development
/plugin install custom-visuals@power-bi-agentic-developmentWhat r-visuals 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.
What it helps with
- 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 for the agent
- 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.
How to install r-visuals
1Plugin marketplace
/plugin marketplace add data-goblin/power-bi-agentic-development/plugin install custom-visuals@power-bi-agentic-developmentThis installs the whole custom-visuals plugin with all its skills
2Skills CLI (Vercel)
npx skills add data-goblin/power-bi-agentic-development --skill r-visuals -a claude-code3Manually: put the files in place
~/.claude/skills/r-visuals/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/r-visuals/
1Skills CLI (Vercel)
npx skills add data-goblin/power-bi-agentic-development --skill r-visuals -a codex2Manually: put the files in place
.agents/skills/r-visuals/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add data-goblin/power-bi-agentic-development --skill r-visuals -a cursor2Manually: put the files in place
.cursor/skills/r-visuals/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install data-goblin/power-bi-agentic-development plugins/custom-visuals/skills/r-visuals2Manually: put the files in place
.github/skills/r-visuals/SKILL.md1Skills CLI (Vercel)
npx skills add data-goblin/power-bi-agentic-development --skill r-visuals -a gemini-cli2Platform CLI
gemini skills install https://github.com/data-goblin/power-bi-agentic-development --path plugins/custom-visuals/skills/r-visualsManually: put the files in place
.devin/skills/r-visuals/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about r-visuals
How do I install r-visuals in Claude Code?
Run these commands in order: /plugin marketplace add data-goblin/power-bi-agentic-development, then /plugin install custom-visuals@power-bi-agentic-development.
What does r-visuals do?
It helps create R visuals for PBIR reports, including writing a script, applying it through pbir, and checking the result.
Are R visuals interactive in Power BI Service?
No. They render as static PNGs and cannot serve as cross-filter sources. Service also blocks packages that require network access.