I am struggling to get my x-axis tick labels to show up as the day the sample was taken. I am also struggling with my grouping reordered, currently, it is showing up as Afternoon coming before Pre-Dawn, I would like Pre-Dawn to be first in order.
Data http://www.sharecsv.com/s/f7079be36f5fc5035029ae105f96d560/VR_Sonde_Data_May_2017%20(1).csv
DO=read.csv("VR_Sonde_Data_May_2017 (1).csv")
DOmelt <- melt(DO, id.vars=c("Month", "Day", "TimeofDay"), measure.vars = c("AverageDO"))
ggplot(DOmelt, aes((x=Day), group=interaction(Month, TimeofDay), fill=TimeofDay)) +
geom_bar(aes(y=value), stat="identity", position=position_dodge()) +
facet_grid(~Month, scales = "free_x") +
ggtitle("Dissolved Oxygen in Ventura River") +
labs(subtitle = "2017") +
theme(plot.title = element_text(size=30, face="bold", vjust=2, hjust=.5), plot.subtitle = element_text(size=20, face="bold", vjust=2, hjust=.5))+
scale_x_discrete("day") +
scale_y_continuous(name ="Average Dissolved Oxygen")+
theme(axis.text.x =element_text(angle=90))
