What problem does it solve?
Building R script visuals in Power BI requires knowing the PBIR JSON format, the scriptVisual type, ggplot2 rendering rules like mandatory print(p) calls, and Service-specific constraints such as package whitelists and text-rendering flags. This Skill encodes that knowledge so an agent can add, script, inject, and validate R visuals without trial and error.
Core Features & Use Cases
- End-to-end R visual workflow: Add a
scriptVisual via the pbir CLI, write a ggplot2 script, inject it with pbir visuals r, and validate bindings with pbir validate.
- ggplot2 pattern library: Ready-made patterns for bar charts, donut charts, line charts, bullet charts, correlation heatmaps, box plots, and faceted small multiples, plus complete PBIR visual.json examples.
- Constraint and trap guidance: Covers the 150,000-row deduplicated cap, byte limits, Desktop vs Service timeouts, supported CRAN packages, and R-specific traps like the
powerbi_rEnableShowText flag and CJK font handling.
- Use Case: Ask the agent to add an R visual showing revenue by date to a PBIR report; it creates the visual, writes a guarded ggplot2 script, injects it, and validates the report.
Quick Start
Ask the agent to create an R visual with a ggplot2 bar chart on a report page and inject the script using the pbir CLI.