Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot_anomaly_decomposition() - Error in -x : invalid argument to unary operator #6

Closed
amrrs opened this issue Apr 12, 2018 · 0 comments · Fixed by #7
Closed

plot_anomaly_decomposition() - Error in -x : invalid argument to unary operator #6

amrrs opened this issue Apr 12, 2018 · 0 comments · Fixed by #7

Comments

@amrrs
Copy link
Contributor

amrrs commented Apr 12, 2018

Looks like a problem with this particular function ggplot ones?

> library(anomalize)
Warning messages:
1: R graphics engine version 12 is not supported by this version of RStudio. The Plots tab will be disabled until a newer version of RStudio is installed. 
2: package ‘anomalize’ was built under R version 3.4.4 
> library(dplyr)

Attaching package: ‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

Warning message:
package ‘dplyr’ was built under R version 3.4.2 
> library(ggplot2)
Warning message:
package ‘ggplot2’ was built under R version 3.4.2 
> tidyverse_cran_downloads %>%
+     filter(package == "lubridate") %>%
+     ungroup() %>%
+     time_decompose(count) %>%
+     anomalize(remainder) %>%
+     plot_anomaly_decomposition() +
+     labs(title = "Decomposition of Anomalized Lubridate Downloads")
Converting from tbl_df to tbl_time.
Auto-index message: index = date
frequency = 7 days
trend = 91 days
Error in -x : invalid argument to unary operator
In addition: Warning message:
package ‘bindrcpp’ was built under R version 3.4.1 
mdancho84 added a commit that referenced this issue Apr 12, 2018
updated with one_of to solve error with c() select in tidy fixes #6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant