I am making a choropleth map to show the value, for each polygon, of an ordered categorical variable (a decile, in fact). So, each polygon already has a specific singular value of this variable, between 1 and 10. There are no missing or NA values. I am using an ordered palette (viridis).
When I use "Classify" within the Symbology tab, I get 11 categories, because QGIS appends an "All other values" (AOV) category. This category is allocated the far end of the viridis palette (yellow), and all other palette colours within the ramp are slightly shifted accordingly (as the palette is split into 11 rather than just 10). For consistency with other maps, I would like my 10 categories to be allocated evenly along the viridis palette. I do not want to have an "All other values" category - it has no use for me as I don't have any other values not already included in the range 1-10, or any missing values.
In order to get the proper 10-step colour ramp (for consistency with other maps), I have been deleting the AOV category and then manually amending all the other colour values to what they would have been if the palette had been divided up into 10 originally. This is time-consuming and frustrating.
- Is there a way to prevent QGIS from appending the AOV category?
- Or, is there a way to get QGIS to allocate a 10-split viridis colour ramp to my values 1-10 and to allocate an entirely different shade (say, grey) to the AOV category, so I could simply delete it without affecting the rest of the ramp?
If I make my map with the
tmap package in R, I do not get this issue.
For those thinking I should use the original data and use the Graduated tab and create my own deciles from that, imagine that all I have is the already-calculated decile number for each area. While the source data would have been a continuous variable, once it is converted into quantiles, it becomes ordered categorical (or factor) data - unless I am mistaken? (A polygon is either in decile 5 or 6, say, it's not 5.78)