We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NA
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
Briefly, when including NA in the limits, I interpret that as wanting to display the na.value for it. This is fine (aside from #5749 (comment)).
na.value
library(ggplot2) p <- ggplot(mpg, aes(displ, hwy, colour = factor(cyl))) + geom_point() p + scale_colour_discrete(limits = c("4", "5", "6", NA))
However when you don't have NA as the last limit, anything after it gets the wrong mapping. The cyl == 8 data become grey instead of blue.
cyl == 8
p + scale_colour_discrete(limits = c("4", "5", NA, "8"))
Created on 2024-03-07 with reprex v2.1.0
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Briefly, when including
NA
in the limits, I interpret that as wanting to display thena.value
for it.This is fine (aside from #5749 (comment)).
However when you don't have
NA
as the last limit, anything after it gets the wrong mapping.The
cyl == 8
data become grey instead of blue.Created on 2024-03-07 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: