Im trying to plot a value column against a time column. So far my code looks like this:
ggplot(echo120_edit, aes(y= PRC_ABC, x =Time_M)) + geom_smooth(method = loess, se = TRUE, fullrange= TRUE) +
scale_x_continuous(breaks = seq(0, 23, 1), labels = paste(seq(0, 23, 1), "00", sep = ":")) +
geom_point() + theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank(), panel.background = element_rect(fill = "white", colour = NA))
The time column has the time the variable was collected (its area backscattering coefficient data btw). I can plot on against the other, but the x-axis looks like a mess and I cant get the geom_smooth lines to appear when I do that. Essentially, I'm stuck trying to make the x-axis (time) have a repeating 24 hour clock with date marks with the loess line and varibale data plotted against it.