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.
Related Posts with How to add names to points on a spatial graph using spmap.
Generating a new variable on non-missing conditionHi I have a small query. I am trying to generate a new variable (X), based on my existing 3 variabl…
Labels (Abc) from variable names (Abc_defghi)Hi all, I've seen a few posts asking questions about labelling variables by their respective names,…
PPMLHDFE Gravity model for remittancesDear Tom Zylkin and Joao Santos Silva I hope you are doing well, I am using a gravity model in the …
error in running mi impute chainedThank you very much in advance for reading this post, and for any help that you can extend. I am tr…
Multilevel modelling using “svy:melogit” with the ‘subpop’ option giving weird resultsI did my modelling using “svy:melogit” with the ‘subpop’ option in Stata 15.1 as follows after readi…
Subscribe to:
Post Comments (Atom)
0 Response to How to add names to points on a spatial graph using spmap.
Post a Comment