-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Symbol not shown for manually added values in the legend #6318
Comments
Thanks for the report! You're right that this is a recent change, but it is a deliberate one. The keys are not shown is because no layer is representing the |
Thanks a lot for the quick answer! I'm glad to ready that this case is covered. I realise that I should have filed it as a support request. If someone reads the initial post and wonders, here is the working example:
|
We'd prefer it if people go to venues specialised in providing support, like stack overflow or the Posit community. This here issue tracker is used to report bugs and file feature requests. |
I understand that, but you probably also realise that this is not always obvious to a user whether a breaking change is a bug or a design choice. And my google fu was not strong enough to spot any of the link you mention in the other issue (https://github.com/tidyverse/ggplot2/issues/5728#issuecomment-1970036164)… |
Hello,
This might be related to #3372.
I need to combine several plots in a grid and make one shared legend. For this, I used to set manually the legend values and limits in the colour scale. But it doesn't work anymore
Here is a reprex:
The levels are added to the legend ("foo" and "bar") but the corresponding symbols are not shown.
I tried (man many other things) adding a blank geom but it didn't help (same output).
This used to be with previous version of ggplot2 (3.4.1 on top of my head), but does not anymore with 3.5.1.
Thank you in advance for your guidance.
The text was updated successfully, but these errors were encountered: