Skip to content

Improvements to scale_*_distiller #1076

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

Merged
merged 4 commits into from
Jun 12, 2015
Merged

Conversation

jiho
Copy link
Contributor

@jiho jiho commented Mar 31, 2015

The order of colors in particular, and the fact that it cannot be easily
reversed (pending a change in package scales) makes scale_*_distiller
almost useless at the moment.

These are simple fixes and should be easy to pull.

@jiho
Copy link
Contributor Author

jiho commented Mar 31, 2015

I realised that I already submitted the colourbar aspect as another pull-request #1017. Let me know how you want to handle those.

@hadley
Copy link
Member

hadley commented Jun 11, 2015

Could you please merge/rebase so that it builds on travis? Otherwise looks good.

jiho added 4 commits June 12, 2015 00:34
Sequential brewer palettes (which are the most appropriate for continuous
interpolation by scale_*_distiller) are presented from dark to light
luminance on the colorbrewer website but created from light to dark
by brewer.pal.
Similarly, some diverging palettes have some sort of intuitive order which
is not inverted by the combination of brewer.pal and continuous_scale

Reversing the colours gives the expected result:
- light for higher values
- blue for low values, red for high values.
@jiho jiho force-pushed the fix/scale_distiller branch from 31d7a40 to 6a6db4a Compare June 11, 2015 22:34
hadley added a commit that referenced this pull request Jun 12, 2015
Improvements to scale_*_distiller
@hadley hadley merged commit db7738d into tidyverse:master Jun 12, 2015
@hadley
Copy link
Member

hadley commented Jun 12, 2015

Thanks!

@jiho jiho deleted the fix/scale_distiller branch June 18, 2015 19:58
@lock
Copy link

lock bot commented Jan 18, 2019

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/

@lock lock bot locked and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants