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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors