by tlrobinson · 16y ago · 0 comments
http://tlrobinson.net/projects/haightcam/traffic.png
(My R skills aren't great, sorry it's not pretty. The camera also got blocked for awhile around day 5 so it's not exactly scientific)
That first cycle starts mid day on New Years Eve. You can see a big drop in traffic leading up to midnight, then a big increase soon after. Not surprising, but it's always a little gratifying to confirm a hypothesis.
library(ggplot2) x <- Sys.time() + 60 * (1:2400) y <- rpois(2400, 50 * (sin(seq(-4 * pi, 4 * pi, len=2400)) + 1.1)) qplot(as.POSIXct(x), y, geom=c("point", "smooth"), xlab="time", ylab="count")