Statistics <- grobTree(textGrob(
"Kruskal-Wallis: chi-squared = 17.168, df = 4, p-value = 0.001793",
x=0.01, y=0.985, hjust=0,
gp=gpar(col="black", fontsize=10, fontface="italic")))
#Violin plots of Optical Density by Lot
Lots_Plot <- ggplot(data = elisa_data,
aes(x = Lot, y = Density, fill = Lot)) +
geom_violin(trim=FALSE) + theme_classic() +
geom_boxplot(width=0.1, color = "black", fill = "darkred")+
scale_fill_manual(values=c("steelblue", "darkblue",
"#56B4E9", "lightblue", "mediumblue"))+
theme(legend.position="none")+
labs(title = "Violin Plot of Lot Optical Densities") +
annotation_custom(Statistics)