-
Notifications
You must be signed in to change notification settings - Fork 1
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
unable to use cmapplot continuous color palettes for fill aesthetic #119
Comments
@gritzenthaler, this is a bit of a different color application than we had originally scoped and tested. Is this code modifiable to enable the application of a continuous palette to a discrete set of categories? |
Yes I believe we talked about this sort of application a while ago, particularly in regards to choropleth maps. I'm sure it's possible, so I'll look into it once I have some time in the coming week. |
Is this the same issue as #70? |
If I'm reading this right, sounds like the same issue to me. |
@gritzenthaler for the time being I've assigned you to both issues and added both to the v1.2 milestone. Feel free to close one or the other if you determine them to be duplicates. |
@gritzenthaler @matthewstern I was trying to add a discrete argument to the I'll start prepping what it would look like. |
I wanted to apply the built-in CMAP continuous palette to produce a continuous gradient fill aesthetic in a stacked bar chart. When I apply
cmap_fill_continuous(palette = "seq_blues")
to a stacked bar chart, I get the following error: "Error: Discrete value supplied to continuous scale". If I switch tocmap_color_continuous(palette = "seq_red_purple")
, the code is ignored and the default ggplot colors are used.I ended up having to use the ggplot color brewer, which worked. The example output I seek is attached.
scale_fill_brewer(palette = "Blues")
The text was updated successfully, but these errors were encountered: