-
Notifications
You must be signed in to change notification settings - Fork 2.1k
respect show.legend in colorbar #1782
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
respect show.legend in colorbar #1782
Conversation
R/guides-.r
Outdated
|
|
||
| # process layer information | ||
| guides_geom <- function(gdefs, layers, default_mapping) { | ||
| # remove layers with show.legend=FALSE or NA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this logic is correct? NA means use the default, i.e. show if the aesthetic is used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh - I'll fix
|
LGTM |
R/guide-colorbar.r
Outdated
| guide_geom.colorbar <- function(guide, layers, defaul_mapping) { | ||
| # Layers that use this guide | ||
| guide_layers <- plyr::llply(layers, function(layer) { | ||
| matched <- matched_aes(layer, guide, defaul_mapping) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defaul_mapping not default_mapping
|
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Fixes #1568