Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing Scales of Map

    I am using Stata14 and I have lights data. I am using the package spmap to create maps. I want to create two maps, one for 1992 and another for 2013 representing light emission of Bangladesh. I want to keep same scale for both the maps. My map has 5 different colors of different ranges of light. If I want to keep a same scale how can I do that?

  • #2
    As I faced the same issue and couldn't find an answer on the form, here is the solution I was provided with (by Asjad Naqvi, thanks!) :
    Add to your spmap code the following:
    Code:
    clmethod(custom) clbreaks(0 4 8 12 16 20)
    or whatever list of values that fits your needs.
    For example:
    Code:
    spmap ver1 using world_shp, id(_ID) fcolor(Blues) ///
    clmethod(custom) clbreaks(0 4 8 12 16 20) ///
    name(map1, replace)
    
    spmap ver2 using world_shp, id(_ID) fcolor(Blues) ///
    clmethod(custom) clbreaks(0 4 8 12 16 20) ///
    name(map2, replace)
    
    graph combine map1 map2, rows(1)

    Comment

    Working...
    X