Skip to content

Fix a couple minor autoplot.epi_archive bugs #666

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

Closed
brookslogan opened this issue May 15, 2025 · 1 comment
Closed

Fix a couple minor autoplot.epi_archive bugs #666

brookslogan opened this issue May 15, 2025 · 1 comment

Comments

@brookslogan
Copy link
Contributor

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
library(epiprocess)
#> Loading required package: epidatasets
#> Registered S3 method overwritten by 'tsibble':
#>   method               from 
#>   as_tibble.grouped_df dplyr
#> 
#> Attaching package: 'epiprocess'
#> The following object is masked from 'package:stats':
#> 
#>     filter

# Single version
tibble(geo_value = 1, time_value = as.Date("2020-01-01") - 1 + 1:5, version = as.Date("2020-01-01") + 6, value1 = 1:5, value2 = 1:5) %>% as_epi_archive() %>% autoplot(value1)
#> Error in seq.int(from = unclass(from), to = unclass(to), by = by): wrong sign in 'by' argument

# Multiple signals
tibble(geo_value = 1, time_value = as.Date("2020-01-01") - 1 + 1:5, version = time_value + 1, value1 = 1:5, value2 = 1:5) %>% as_epi_archive() %>% autoplot(value1, value2)
#> Error in `dplyr::mutate()`:
#> ℹ In argument: `.facets = interaction(geo_value, .response_name, sep = "
#>   / ")`.
#> Caused by error:
#> ! object '.response_name' not found

Created on 2025-05-14 with reprex v2.1.1

@brookslogan
Copy link
Contributor Author

brookslogan commented May 15, 2025

Duplicated of #667; after submitting, GitHub claimed "This issue does not exist or has been deleted." so I re-filed, but it appeared that the original actually did get created.

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

No branches or pull requests

1 participant