Dear all,
I have managed to plot the spatial boundaries on the map and the locations of different points. I can also label the districts/Traditional Authority boundaries but I have problems with labeling the points [the labels of the points are titled hc_name in data set named hosp.dta].
Below is the program I am running in Stata 15.0:
spmap using mlwtacoord id(mlwtaid) legstyle(2) label(x(x_cen) y(y_cen) label(ADM3_ENs) size(*1.2)) //
point(data("hosp.dta") x(longtude) y(latitude) by(level) legenda (on) leglab(hc_name) //
size(*0.4 *0.2) fcolor(red midgreen ) sh(circle diamond) ocolor(white white) osize(*5.1 *5.05)) //
label(x(longtude) y(latitude) label(hc_name) size(*0.5) position(0 6) length(21))
The error message: option la() not allowed
Can anyone help.
Thanks.
0 Response to How to add names to points on a spatial graph using spmap.
Post a Comment