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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Regular Visitor

R visualisation losing some but not all aspects of a visualisation on publish



I'm having an issue when using ggplot2, ggridges, forcats, magrittr, and dplyr to show a ridgeline plot with median lines and jittered points. The visualisation resolves perfectly in the Power BI app, but once published it loses the points and median line (The median line is faint but it is there in the first image).


Is there a workaround for this?


Code as follows and i have bolded the aspects that do not resolve:


data <- dataset
tatdata %>% mutate(Category= fct_reorder(Category, -Variable)) %>% ggplot( aes(x=Variable, y=Category, height = ..density..))+
geom_density_ridges(jittered_points = TRUE, quantile_lines = TRUE, col="#6C8BA8", quantiles = 2, lty=1, fill="#A1B9CF", alpha = 0.6, rel_min_height = 0.01, scale = 1.5, size = 0.5) +
theme_ridges(font_size = 14, grid = TRUE, center_axis_labels = TRUE, font = "ArialMT") +
scale_x_continuous(expand = c(0.01, 0), limits = c(0, 300), breaks=seq(0, 300, by = 10)) +
scale_y_discrete(expand = c(0.01, 0))


Frequent Visitor

I ran into this issue, also. I believe it's due to Power BI service supporting version 0.4.1, while the quantile_lines argument was a version 0.5.1 advent. I believe the solution to our problems is for MS to update the supported R packages with more recent versions.

Community Support
Community Support

Hi @Tombo746 ,

Please check if the following documentation can help 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.

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors