Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Good morning, I am trying to create a map with power bi r script, I cannot use shiny and I cannot use leaflet either, can you recommend some option to represent a polygon map from the R script, it has to be interactive.
Good morning , and thank for your info. The link is very ussefull.
I have created a map in R with leaflet, and when I load it into Power Bi in R script, I get an error: "no image has been created, the R code has not generated any visual, Please make sure the R script results in a plot on R's default device."
My goal is to load with R, using any library, an interactive map that can click on spatial objects (polygons, points, lines) and return values of their attributes.
Could it be that R Script cannot contain this functionality in Power BI?
Hi @jaimeroncero ,
By default, Power BI Desktop doesn't include, deploy, or install the R engine. To run R scripts in Power BI Desktop, you must separately install R on your local computer.
Then I think you can go to File > Options and settings > Options. Under Global, select R scripting.
If you want to know more about this, I think you can read this document: How to create geographic maps in Power BI using R (sqlshack.com)
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 30 | |
| 26 | |
| 26 |