I am very new to R studio so sorry if the question is a bit simplistic. I am attempting to do a simple plot of my data with added error bars and an annotation of my P value, I also would like to change the labels currently present on my graph.
geom_errorbar(data = combinedsum,
aes(x = Salt_concentration, ymin = mean - se, ymax = mean + se),
width = 0.3)
geom_errorbar(data = combinedsum,
aes(x = Salt_concentration, ymin = mean, ymax = mean),
width = 0.2)
scale_y_continuous(name = "Generation time (Minutes)",
limits = c(0, 180),
expand = c(0, 0)) +
scale_x_discrete(name = "Salt concentration (%)", expand(0,0), limits = c(0, 10.3), breaks = c(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10))
annotate("text", x = 1.5, y = 75,
label = expression(italic(p)~"= 3.647e-05")) +
theme_classic()
Any help would be greatly appreciated. Thank you!