diff --git a/.travis.yml b/.travis.yml index d137244..a7bb683 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ before_install: - ./travis-tool.sh bootstrap install: - - ./travis-tool.sh install_r Rcpp ggplot2 + - ./travis-tool.sh install_r Rcpp ggplot2 stringr lubridate testthat script: - ./travis-tool.sh run_tests diff --git a/README.md b/README.md index dfde79e..24e8d17 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,8 @@ res = AnomalyDetectionTs(raw_data, max_anoms=0.02, direction='both', plot=TRUE) res$plot ``` +![Fig 1](https://github.com/twitter/AnomalyDetection/blob/master/figs/Fig1.png) + From the plot, we observe that the input time series experiences both positive and negative anomalies. Furthermore, many of the anomalies in the time series are local anomalies within the bounds of the time series’ seasonality (hence, @@ -91,6 +93,8 @@ res = AnomalyDetectionTs(raw_data, max_anoms=0.02, direction='both', only_last= res$plot ``` +![Fig 2](https://github.com/twitter/AnomalyDetection/blob/master/figs/Fig2.png) + From the plot, we observe that only the anomalies that occurred during the last day have been annotated. Further, the prior six days are included to expose the seasonal nature of the time series but are put in the background as the window @@ -99,3 +103,7 @@ of prime interest is the last day. Anomaly detection for long duration time series can be carried out by setting the longterm argument to T. +## Copyright and License +Copyright 2015 Twitter, Inc and other contributors + +Licensed under the GPLv3