I have a set of measurements of the number of spores counted for every two hour period over the course of 24 hours, one in dark conditions as well as one in light conditions. Total of 12 sampling periods, and 24 measurements.
The closest I've gotten to a "normal" 24 hour "clock" barplot is with this code, with Mean.Treatment
being the number of spores counted in each time interval:
dc = read_excel('Spore Data for R.xlsm', "Test")
summary(dc)
ggplot(dc, aes(x = Time, y = Mean.Treatment, fill = Treatment)) +
geom_col(position = "dodge") +
coord_polar(start = 0)
This displays a pretty nice image, but not a clean and clear "day measurement". Ideally I can find out how to move the "0/24" to the top and have the bars to the right of the timeline rather than split in between to more easily show the collection period was between these two time
I have tried:
scale_x_continuous(limits = c(0,24),
breaks = 0:24)
dc$Time=as.numeric(levels(dc$Time))[dc$Time]
but errors are still present. Any idea how to make this more legible as a graph?