Skip to content

Instantly share code, notes, and snippets.

@alq666
Created December 10, 2012 22:52
Show Gist options
  • Save alq666/4254077 to your computer and use it in GitHub Desktop.
Save alq666/4254077 to your computer and use it in GitHub Desktop.
Alert distribution by day of week
ggplot(dd_by_hod, aes(occurrence_dow, daily, group=occurrence_dow))
+ geom_boxplot()
+ scale_x_discrete(breaks=seq(0, 6),
labels=c("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"))
+ xlab("Day of the week")
+ ylab("Number of alerts")
+ ggtitle("Daily distribution")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment