-
Notifications
You must be signed in to change notification settings - Fork 123
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
Format the 'to'-break values differently #258
Comments
Hi Martijn- |
Hi Michael, This was a common problem: leaflet::addLegend has its own interpretation of which items are included. Could you do me a favor? Could you test the legend behavior in interactive mode, also for other data/map types? Thx! |
Martijn- Also, I will dig into it more myself, but can you direct me to anything I might look at such that a legend might show something along the lines of 0-4.9, 5.0-9.9 etc. (rather than 0-5, 5-10, etc) even if the data is actually continuous? Perhaps no simple way. Thanks again, Michael |
You're welcome, Michael! There is no easy way to format the numbers like that. There is an argument I can image applications for which this could also be handy, say for an integer variable from 1 to 100, which is considered as continuous variable, and where the preferred breaks are 1-9, 10-19, 20-29, etc., rather than 1-10, 10-20, 20-30, etc. |
See new improvements in this area at https://github.com/mtennekes/tmap/issues/406#issuecomment-610559092. |
This issue may be related to the issue you already solved that I submitted #249. And, I may be doing some weird stuff, and am admittedly mapping a very awkward and skewed "distribution", BUT, the plot mode map is more-or-less clear and certainly interpretable.
The same map in view mode has some important problem with the legend, such that a color in the map does not appear in the legend, so it become uninterpretable.
Here is some code that reproduces the exact problem, and has some comments to show what I am doing.
I sure appreciate any help you can provide!
The text was updated successfully, but these errors were encountered: