You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
scale_{colour,fill}_manual(limits = ...) doesn't limit the scale #3262
I forgot to reply here. After a quick look, I think there are two possible fixes:
Add limits argument to manual_scale() and subset values before creating a palette from the values.
Raise an error when limits is provided.
First one seems straightforward, but I enumerate the second because manual_scale() can accept pal while it's difficult to limit the pal and it might be confusing.
If we go with the first, probably it will be something like this:
Activity
thomasp85 commentedon Apr 24, 2019
Do you think we can fix this for 3.2.0?
yutannihilation commentedon May 1, 2019
I forgot to reply here. After a quick look, I think there are two possible fixes:
limitsargument tomanual_scale()and subsetvaluesbefore creating a palette from the values.limitsis provided.First one seems straightforward, but I enumerate the second because
manual_scale()can acceptpalwhile it's difficult to limit thepaland it might be confusing.If we go with the first, probably it will be something like this:
Fix limits argument of scale_{colour,fill}_manual() (#3685)