Hi,
I am trying to produce a map using a categorical variable with 16 categories. For each category, I want spmap to use a specific color I define using RGB. I am using the code below.
[CODE][spmap delta_sup_rli_lowlow using world_shp2, id(_ID) clnum(16) clmethod(unique) fcolor( "255 234 216" "255 213 178" "255 171 103" "255 129 5" "218 156 179" "229 137 127" "243 123 91" "252 87 41" "151 67 143" "184 61 115" "222 72 92" "240 35 63" "3 3 127" "99 0 124" "189 0 100" "219 0 83" ) osize(vvthin vvthin vvthin vvthin) ndsize(vvthin)/CODE]
The values in fcolor() are in order to each of the categories in my categorical variables, from 1 to 16. That is, value 1 takes color "255 234 216", value 2 "255 171 103", and so on.
However, spmap re-allocates the colors using some other criteria. I made different tries, but I can't find a way, nor documentation, that helps me with this. Does anyone please give me an advice?
thanks,
MatÃas
I am trying to produce a map using a categorical variable with 16 categories. For each category, I want spmap to use a specific color I define using RGB. I am using the code below.
[CODE][spmap delta_sup_rli_lowlow using world_shp2, id(_ID) clnum(16) clmethod(unique) fcolor( "255 234 216" "255 213 178" "255 171 103" "255 129 5" "218 156 179" "229 137 127" "243 123 91" "252 87 41" "151 67 143" "184 61 115" "222 72 92" "240 35 63" "3 3 127" "99 0 124" "189 0 100" "219 0 83" ) osize(vvthin vvthin vvthin vvthin) ndsize(vvthin)/CODE]
The values in fcolor() are in order to each of the categories in my categorical variables, from 1 to 16. That is, value 1 takes color "255 234 216", value 2 "255 171 103", and so on.
However, spmap re-allocates the colors using some other criteria. I made different tries, but I can't find a way, nor documentation, that helps me with this. Does anyone please give me an advice?
thanks,
MatÃas
Comment