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

max_col appears to be ignored when set to 0 #150

Closed
wkdavis opened this issue May 18, 2022 · 1 comment
Closed

max_col appears to be ignored when set to 0 #150

wkdavis opened this issue May 18, 2022 · 1 comment

Comments

@wkdavis
Copy link

wkdavis commented May 18, 2022

It looks like setting max_col = 0 does not remove colors from gg_season() as per the documentation.

library(feasts)
#> Loading required package: fabletools
tsibbledata::aus_production %>% 
  gg_season(Cement, max_col = 0)

tsibbledata::aus_production %>% 
  gg_season(Cement, max_col = 0, labels = "none")

Created on 2022-05-18 by the reprex package (v2.0.1)

@mitchelloharawild
Copy link
Member

Thanks for reporting this. This argument was misdocumented after transitioning to a continuous default colour guide instead of showing now colours. I've restored its functionality as documented, but changed the default value to be Inf (since the continuous guide is a desirable default). A new argument max_col_discrete is added to control the threshold for discrete and continuous colour guides.

library(feasts)
#> Loading required package: fabletools
tsibbledata::aus_production %>% 
  gg_season(Cement, max_col = 0)

Created on 2022-08-24 by the reprex package (v2.0.1)

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

2 participants