Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 62111

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

$
0
0

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

 


Viewing all articles
Browse latest Browse all 62111


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>