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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
yogita
Frequent Visitor

Power BI R script Question

Hi All,

 

I am very new to using R script in power BI and I need some help here. I am getting this error afer adding the "+geom_density() " in the code.  I have an histogram which I am trying to smooth out to get a curve. Can you please help know the actual reason for the code and help me fix it?

yogita_0-1655300326572.png

 

 

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi  @yogita ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
johncolley
Solution Sage
Solution Sage

Hi @yogita , 

 

Try expliciting referncing the aesthetics for geom_density, refer to: https://stackoverflow.com/questions/63241880/geom-density-blind-in-terms-of-the-aesthetics-supplied 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.