-library(jsonlite)
library(fable)
library(tsibble)
library(lubridate)
library(ggplot2)
-logfile <- file("data/photos.vanrenterghem.biz.access.kvp.log.1")
-
-apachelog <- stream_in(logfile)
-
-#apachelog$time <- gsub("\\[|\\]", "", apachelog$time)
-apachelog %>%
+createPlot <- function(x){
+x %>%
mutate(time = gsub("\\[|\\]", "", time),
time = dmy_hms(time),
datehour = floor_date(time, unit = "hour")
autoplot +
ggtitle("Forecasting website hits using apache log only") +
xlab("Date time")
-
+}
\ No newline at end of file