Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

R - getting started with visuals

Hi, 

 

Struggling to get started with R visual in power BI. I tried to set everything up but get the following error message: 

 

Error Message:

No image was created. The R code didn't result in creation of any visuals. Make sure your R script results in a plot to the R default device.

 

 

Options set up in the picture below: 

 

EX1.JPG

Code: 

 

EX2.JPG

ggplot2 installed throught Rstudio. 

 

Not sure what I am doing wrong here. Thanks in advance for your help! 

 

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

You can try to remove 't <-' to let ggplot function draw graph:

library(ggplot2)
ggplot(dataset, aes(x = cty, y = hwy, size =cy1)) + geom_point()

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors