For clarity of information, it is best to avoid more than 5 classes because with more classes the difference in shades becomes too subtle for a human eye to easily distinguish a “hierarchy”. It is especially the case when using thematic overlay in combination with a multi-colour background (eg. as a transparent overlay on Google Map). Dividing the data into meaningful classes is a science on its own and I will come back to it in a separate post. Today I just wanted to focus on colour selection and to introduce a free online tool that will help in choosing the right combination.

To present “nominal/ qualitative data” which is un-orderable, non-numerical, the colour variation should not present a pattern and should be totally random. ColorBrewer allows do define up to 12 classes.

For “diverging data”, that is data that oscillates around a certain “standardised value” (like mean or median), it is best to use 2 diverging colours with a neutral midrange shade. Again, ColorBrewer goes only to 9 classes but if you require 10 classes, it is easy to combine 6 class contrasting colours from sequential option (just ignore the first lightest class and merge remaining 5 shades from each colour scheme for your customised 10 colour swatch).

A final word of caution if you are working with KLM file format. It is a common convention to use colour sequence as Red–Green-Blue, then Alpha channel for transparency. However, KML standard specifies everything in reverse: Alpha-B-G-R! For example, if hex colour code for blue is 0x045A8D, in KLM it has to be written as ff8D5A04 (where the first two digits indicate alpha transparency of 100%, ie non transparent). And to save you a headache or two while trying to work out the right codes for different transparency settings in KML, here is a list of the most common values:
- 100% = ff
- 90% = e5
- 85% = d9
- 80% = cc
- 75% = bf
- 70% = b2
- 65% = a6
- 50% = 7f
- 30% = 4c
http://www.sgrillo.net/kml_color/
http://www.zonums.com/gmaps/kml_color
Related Free GIS Tools posts:
Google Map API
Address Validation Tool
Simple Geocoder
3 comments:
Normally I use a gradual scale rather than group into a number of discrete colours.
My default scale is red-yellow-green-cyan-blue, because that allows values close to each other all the way along the scale to be distinguished.
Thanks for your comment Eric. I am still experimenting to find what works best with different backgrounds (ie. maps, satellite overlays). I guess, rainbow approach may be good if you really need many classes.
Same Eric i am using gradual scale out of group.
Post a Comment