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