Apart from the comparison between both group within each timepoint, I'd also like to compare and determine the significant (preferably displayed in asterisk) just particularly between "High light+Chilled" at 0hr and "High light+Chilled" at 24hrs. Would appreciate if anybody can enlighten me, thanks! Please find my script, data frame and plot below.
summary_anti_PsbS_both <-summarySE(data=anti_PsbS_both, measurevar="rd", groupvars=c("time","gc"))
ggplot(data=summary_anti_PsbS_both, mapping = aes(x = factor(time), y = rd, fill= gc))+
geom_bar(stat = "identity", position = "dodge")+
labs(x= "Time (hours)", y="Relative density", fill= "Growth condition")+
ylim(0,1.5)+
geom_errorbar(aes(ymin=rd-se, ymax=rd+se), width=.2, position=position_dodge(width= 0.9))+
annotate(geom="text", x=1, y=1.4, label="n=3")+
stat_compare_means(data=anti_PsbS_both, label="p.signif", label.y= 1.25, method="anova")+
theme_bw()
data.frame(anti_PsbS_both)
id gc time rd ...5 ...6 ...7 ...8 ...9 ...10
1 1 High light+Chilled 0.0 1.000 NA NA NA NA NA NA
2 2 High light+Chilled 0.0 1.000 NA NA NA NA NA NA
3 3 High light+Chilled 0.0 1.000 NA NA NA NA NA NA
4 4 High light+Chilled 0.5 0.487 NA NA NA NA NA NA
5 5 High light+Chilled 0.5 1.341 NA NA NA NA NA NA
6 6 High light+Chilled 0.5 0.904 NA NA NA NA NA NA
7 7 High light+Chilled 8.0 0.471 NA NA NA NA NA NA
8 8 High light+Chilled 8.0 0.777 NA NA NA NA NA NA
9 9 High light+Chilled 8.0 0.342 NA NA NA NA NA NA
10 10 High light+Chilled 24.0 0.392 NA NA NA NA NA NA
11 11 High light+Chilled 24.0 0.627 NA NA NA NA NA NA
12 12 High light+Chilled 24.0 0.258 NA NA NA NA NA NA
13 13 High light+Chilled 48.0 0.800 NA NA NA NA NA NA
14 14 High light+Chilled 48.0 1.305 NA NA NA NA NA NA
15 15 High light+Chilled 48.0 0.579 NA NA NA NA NA NA
16 16 Control 0.0 1.000 NA NA NA NA NA NA
17 17 Control 0.0 1.000 NA NA NA NA NA NA
18 18 Control 0.0 1.000 NA NA NA NA NA NA
19 19 Control 0.5 1.279 NA NA NA NA NA NA
20 20 Control 0.5 0.668 NA NA NA NA NA NA
21 21 Control 0.5 0.877 NA NA NA NA NA NA
22 22 Control 8.0 0.958 NA NA NA NA NA NA
23 23 Control 8.0 0.642 NA NA NA NA NA NA
24 24 Control 8.0 0.612 NA NA NA NA NA NA
25 25 Control 24.0 0.915 NA NA NA NA NA NA
26 26 Control 24.0 0.876 NA NA NA NA NA NA
27 27 Control 24.0 0.836 NA NA NA NA NA NA
28 28 Control 48.0 0.662 NA NA NA NA NA NA
29 29 Control 48.0 0.914 NA NA NA NA NA NA
30 30 Control 48.0 0.912 NA NA NA NA NA NA