twitter / AnomalyDetection

Anomaly Detection with R
GNU General Public License v3.0
3.55k stars 779 forks source link

Doesn't produce plot #99

Open dhallidy opened 6 years ago

dhallidy commented 6 years ago

I have successfully run this on multiple dataframes but occasionally don't receive output or an error. Upon researching the issue I think the error comes from the following line in the source code:

xgraph <- ggplot2::ggplot(x_subset_week, ggplot2::aes_string(x="timestamp", y="count")) + ggplot2::theme_bw() + ggplot2::theme(panel.grid.major = ggplot2::element_blank(), panel.grid.minor = ggplot2::element_blank(), text=ggplot2::element_text(size = 14))

when I run this and on a dataframe where I don't receive output from the AnomalyDetectionTs function I get the following error:

Don't know how to automatically pick scale for object of type function. Defaulting to continuous. Don't know how to automatically pick scale for object of type function. Defaulting to continuous. Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, : arguments imply differing number of rows: 0, 179