We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This issue is a port of tidyverse/ggplot2#5224.
The following behaviour is unexpected, where the order of items in the range is rearranged.
library(scales) f <- factor(c("A", "B", "C", NA), levels = c("C", "B", "A")) range <- DiscreteRange$new() range$train(na.omit(f)) # This is fine range$range #> [1] "C" "B" "A" range$train(f) # This is unexpected range$range #> [1] "A" "B" "C"
If we flip the order in which the range is trained, everything seems to work as expected:
range$reset() range$train(f) range$range #> [1] "C" "B" "A" NA range$train(na.omit(f)) range$range #> [1] "C" "B" "A" NA
Created on 2023-03-28 with reprex v2.0.2
The text was updated successfully, but these errors were encountered:
432432e
Properly fix #383
01493b7
Better fix for #383
cd7a60b
No branches or pull requests
This issue is a port of tidyverse/ggplot2#5224.
The following behaviour is unexpected, where the order of items in the range is rearranged.
If we flip the order in which the range is trained, everything seems to work as expected:
Created on 2023-03-28 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: