Code for plotting and plots

Uses fread() into a data.table followed by subsetting, instead of
sqldf, grep, etc. Need to cast to data.frame in order to use strptime,
since data.table does not support POSIXlt types.