我正在尝试使这张分开的小提琴剧情中的图例颜色变得牢固。我已经成功删除了此处的行(在此站点上有其他帖子之后),但是我不知道如何进行操作。
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)))
我从这里Split violin plot with ggplot2
使用了用于分割小提琴的代码。提前感谢您的任何建议!