Use sequential colour schemes with discrete data
tsdye opened this issue · 1 comments
tsdye commented
I get the error message in the title when using sequential and diverging scale_fills with a data set that requires 33 values. I've tried scale_fill_sunset(), scale_fill_iridescent(), and scale_fill_smoothrainbow().
The default ggplot2 scale_fill works fine, as does scale_fill_grey(), so I am expecting the khroma scale_fill functions that are capable of yielding more than the default number of colors to work as well.
User error?
tsdye commented
Ah, I see now. The interpolated version expects a continuous scale. Any chance these palettes will be augmented to accept long discrete scales?