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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
tw_psycho
Regular Visitor

ggplot ggnewscale library missing

Hi, 

 

I need to make ggplot chart which uses 2 separate fill scales. To do this I new_scale_fill() from ggnewscale packages. It works well in my PowerBi desktop. Unfortunately, online version of PowerBI does not support this package. Since this package contains only few functions which is placed here I copied and pasted it into my R script inside PBI, but it didn't solved problem - PBI online keep returning error: "Don't know how to add new_scale_fill() to a plot". Desktop verion works in this solution. 

I scoped that problem using content of functions and found out that: ggplot2::standardise_aes_names("fill") which can be called instead of new_scale_fill is propably not in PBI: 

Error: 'standardise_aes_names' is not an exported object from 'namespace:ggplot2'.

Interesting while this is just ggplot2 function.

I need to make something like this:

https://github.com/eliocamp/ggnewscale/blob/master/man/figures/README-unnamed-chunk-1-1.png

Please, help me solve this problem. 

 

PS. There is no option here to upload image - SERIOUSLY? 

 

 

1 REPLY 1
RuthHjertmann
Regular Visitor

I am also experiencing this problem. Did you find a solution? 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors