Announcement

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

  • spmap command

    Hi! I need to create a map using spmap. the variable is taking 3 different values that should correspond to 3 different shade colors. However, I would like that the shade colors take different colors according to a string variable of the master (eg. shaded blue if string variable is equal to"x", shaded red if string variable is equal to"y" and so on). Is there a way to do that?

    Thank you.

    Regards,

    Michela

  • #2
    Michela,
    encode your string variable into a numeric (see help encode). Then use the uniq colorizing method of spmap with a desired palette (probably diverging).
    See also ADePT Map.
    Best, Sergiy Radyakin.

    Comment


    • #3
      Dear Sergiy,

      thank you for you reply. However, what I meant is that I would like to color different provinces of the map with shaded color that correspond to 3 different value of a given var1. Moreover, I would like that for value a of var2, 3 color of var1 are shaded blue, for value b of var2, shaded red and so on.

      Comment

      Working...
      X