我的数据见附件,用的代码为:
ggplot(data = up, aes(x=gene, y=Log2FC)) + geom_boxplot(aes(fill=Metabolism), position=position_dodge(1)) + facet_wrap(~ gene, scales="free_x") + xlab("Up regulated") + geom_signif(comparisons = list(c("Primary", "Secondary")),test = "t.test")
但总是报错:
Warning messages:
1: Computation failed in `stat_signif()`:
missing value where TRUE/FALSE needed
2: Computation failed in `stat_signif()`:
missing value where TRUE/FALSE needed
我想要的图是这样的:
请大家指点,谢谢!