Hi there-
I am interested in making a figure that has labels denoting statistical significance that are different for each group that I have plotted in separate facets. I have no idea how to do this so I would appreciate any help! Here is the code that I am working with:
sp_NR_qPCR <- ggplot(qPCR_data, mapping=aes(x=Sample, y=delCt, color=Gene))+
geom_point(show.legend=FALSE)+
geom_smooth(aes(fill=Gene), show.legend=FALSE)+
facet_grid(.~Gene)+
scale_x_continuous(breaks=c(-25, -17, -1, 7))+
labs(y="Relative abundance (∆Ct)", x="Hours relative to peak secretion (0 h)")+
theme_classic()+
theme(axis.title.x=element_text(size=10, face="bold"), axis.title.y=element_text(size=10, face="bold"))+
theme(axis.text.x=element_text(size=10), axis.text.y=element_text(size=10))+
theme(strip.text.x=element_text(size=12, face="italic"))+
scale_color_brewer(palette="Set1")+
scale_fill_brewer(palette="Set1")+
theme(panel.border=element_rect(fill = NA, color="black"))
sp_NR_qPCR
and it produces a figure that looks like this:
BUT I would like the figure to look like this, with the respective labels above the point distributions, and the labels on top of each individual facet as well:
Figure1.pdf (215.8 KB)
Sorry that they are different formats. Let me know if you need me to re-upload in a better format.
Thanks,
Erik