I have been working on a clustered bar plot but my x and y axis scales are off. I would like to y axis to go from 0-30 and the data to be arranged according to month from May-October. I have been stuck on this for quite a while. I have included all of the code that I have tried.
str(Plaster_2019_Data)
dat.g <- gather(Plaster_2019_Data, type, value, -Date)
ggplot(dat.g, aes(Date, value)) +
geom_bar(aes(fill = Date), stat = 'identity', position = "dodge2") +
facet_grid(.~type) +
expand_limits(y = c(1,30))
ggplot(dat.g, aes(Date,value)) +
geom_bar(aes(fill = type), stat = 'identity', position = "dodge2") +
expand_limits(y = c(1,30))
Data
Date Surface pH Temperature
5/13/2019 12.08 8.56 11.16
5/29/2019 11.68 8.90 8.76
6/10/2019 8.69 9.07 14.65
6/24/2019 2.26 7.49 17.51
7/8/2019 4.54 7.77 23.82
8/5/2019 2.13 8.17 25.29
8/19/2019 6.34 8.62 26.50
9/4/2019 9.33 9.03 24.31
9/16/2019 10.98 8.58 21.02
9/30/2019 9.59 8.61 17.33
10/14/2019 16.07 8.70 10.39
11/14/2019 9.12 8.07 6.38