Closed SimonTopp closed 2 years ago
This bug was actually a little worse than that: It wasn't mapping the continuous palette at all, due to a 0-index bug resulting in basically random values being assigned. The behavior was supposed to be what you described. If you try the latest version (8790eabf2ed9187c8d500e9a77107b29dafb9d68), you should see the actual correct continuous mapping.
Also, thanks for the bug report!
Thanks for developing and maintaining such a cool package!
Continuous color palettes map based on the order of the values in the sf dataframe rather than sequentially based on the value of the attribute provided in
data_column_fill
. This is problematic if your data column is quantitative. An easy fix might be just arranging the cropped sf polygon by the data column somewhere in the function.Reproducible example
Resulting maps