Dear All,
I use the following command
to generate the following plot 
I would like to change the legend. Specifically, I would like to have something like this:
More specifically, I would lile also to eliminate the last entry (No data).
I tried to use the following:
However, I get an error message saying that laglabl is not allowed. Of course I can modify the entries manually, but since I need to run several plots, it would be useful to be able to do this autonomtically.
Any hint?
FYI, the variable msp_res1_yp9500 takes only four values from 1 to 4 and it is labelled as Low Low; Low High; High Low and High High, respectively. The other entries which correspond to the white color in the map are missing.
I use Stata 17 MP-4.
Thanks in advance,
Dario
I use the following command
Code:
grmap msp_res1_yp9500, fcolor(blue blue*0.2 red*0.2 red) clmethod(custom) clb(0 1 2 3 4)
I would like to change the legend. Specifically, I would like to have something like this:
More specifically, I would lile also to eliminate the last entry (No data).
I tried to use the following:
Code:
grmap msp_res1_yp9500, fcolor(blue blue*0.2 red*0.2 red) clmethod(custom) clb(0 1 2 3 4) leglabl(High-High High-low Low-High Low-Low) legend(on)
Any hint?
FYI, the variable msp_res1_yp9500 takes only four values from 1 to 4 and it is labelled as Low Low; Low High; High Low and High High, respectively. The other entries which correspond to the white color in the map are missing.
I use Stata 17 MP-4.
Thanks in advance,
Dario
Comment