I'm trying to get the legend colors in this split violin plot to be solid. I've successfully removed the lines that were here (following a different post on this site), but I can't figure out how to proceed.
ctn_sv <- ggplot(z, aes(x = time, y = ctn_mean, fill = group), position = position_dodge(.9), alpha = .01) +
geom_split_violin(trim = TRUE, alpha = 0.65) +
ggtitle("CTN: FFF vs ZZZ")+
theme_bw() + theme(legend.title = element_blank()) +
scale_fill_brewer(palette = "Dark2") +
stat_summary(fun = mean, fun.min = mean, fun.max = mean,
geom = "crossbar",
width = 0.25,
position = position_dodge(width = .25)) +
guides(fill = guide_legend(override.aes = list(linetype = 0)),
color = guide_legend(override.aes = list(linetype = 0)))
I used the code for split violin plot from here Split violin plot with ggplot2
Thanks in advance for any advice!