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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Tombo746
Regular Visitor

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

Hi,

 

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).

withfeatures.PNGwithoutfeatures.PNG

Is there a workaround for this?

 

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

 

data <- dataset
library("ggplot2")
library("ggridges")
library("forcats")
library("magrittr")
library("dplyr")
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))

 

2 REPLIES 2
Rudnik
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. 

 

https://docs.microsoft.com/en-us/power-bi/connect-data/service-r-packages-support

https://wilkelab.org/ggridges/news/index.html

v-yiruan-msft
Community Support
Community Support

Hi @Tombo746 ,

Please check if the following documentation can help you:

https://wilkelab.org/ggridges/articles/introduction.html

Best Regards

Rena

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

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors