library(ggplot2)
library(ggsignif)
p<-ggplot(cell,aes(x=Type,y=Ratio,colour = Type)) +
geom_boxplot(pch=16,cex=1)+geom_point(position="jitter",size =3,aes(shape = Type)) + theme_bw() +
scale_colour_manual(values=c("red", "#c8a100","red", "#c8a100")) +
geom_signif(comparisons = list(c("231-Clusters", "231-SingleCells"),
c("MCF-7-Clusters","MCF-7-SingleCells")),map_signif_level = TRUE, textsize=6) +
ylim(NA, 1)
就这