DATA MINING
Desktop Survival Guide by Graham Williams |
|||||
Grouping Time Series for Box Plot |
> observer.time <- strptime(1:365, format="%j") # Generate dates > observer.measure <- rnorm(365) > ds <- data.frame(time = observer.time, measure = observer.measure) > observer.months <- ordered(months(ds$time), levels = c("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")) > boxplot(ds$measure ~ observer.months) |
Todo: Convert this to R code to generate better quality plot.