Comments (8)
Maybe it should use brewer_pal()
?
from scales.
Yeah, perhaps.
from scales.
I don't have the time for this, but I'd review a PR.
from scales.
Not sure why this is closed; col_factor
with a qualitative color brewer palette is really broken. For example with show_col(col_factor("Set1", levels = 1:4)(1:4))
only one of the resulting colors is actually in Set1. Unfortunately the breakage propagated to leaflet::colorFactor
as well.
from scales.
If brewer_pal() is used instead of interpolation, you lose the ability to generate more colors than the palette provides. This may break compatibility when someone was using col_factor to generate more colors than the palette provides.
from scales.
Would it be possible to use interpolation only in the case where the number
of colors is more than the palette provides?
On Tue, Sep 27, 2016 at 1:57 PM, Bhaskar V. Karambelkar <
[email protected]> wrote:
If brewer_pal() is used instead of interpolation, you lose the ability to
generate more colors than the palette provides. This may break
compatibility when someone was using col_factor to generate more colors
than the palette provides.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#62 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AALamZnf_oQ7BEBqmM7ZIEg3c73AqwfKks5quVj1gaJpZM4FOCtA
.
from scales.
That's what I was thinking. And it may even be a good idea to warn if interpolation is required.
from scales.
from scales.
Related Issues (20)
- Feature request: rescale transformation HOT 2
- Feature request: integer breaks
- feature requests: suppress trailing 0s when specifying accuracy and specify maximum number of digits when using NULL argument heuristic
- Add "real" ggplot examples to `label_*()` and `breaks_*()` functions
- Feature request: `label_log()` but for negative numbers
- Feature request: expand suite of colour manipulation functions
- Feature request: `pal_size`, `pal_alpha`, & `pal_linewidth` HOT 5
- Feature request: properties for palettes
- Feature request: `hold` argument for `label_*` functions HOT 1
- Feature request: could scales support keeping oob values but with infinites turned to NA? HOT 2
- Consider including package name in S3 class name(s)?
- Add help for breaks_* functions that says they return a function etc
- Could arguments be added scales::breaks_extended, so that it is easier to use?
- Feature - wrap at a specific character
- `breaks_width()` does not work with reverse transform
- Could `label_*` functions support labelling every nth break?
- Unexpected Error when using `scale_cut = cut_short_scale()` HOT 1
- Could a `breaks_equal` function be provided? HOT 1
- Should `transform_time` be named `transform_datetime`?
- Feature request: could `scales::breaks_width` have an argument to return breaks that encompass the full range of the data?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scales.