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.
connect paired dot in scatter plotHi there, I'm working on a descriptive scatter plot where I need to show values of two variables, X…
a basic question about -if- programming commandI know what -if- -else- does, but what if there is a -if- but not the -else-? For example: if exp {…
qreg alternate solutions exists - retrieve solutionsHi, I am running a simple quantile (median) regression that has a dummy variable on the RHS. The y-…
Create a new column using a column of 1 and 0.Hello! I'd like to ask for advice. I have the following data: I want to make a "var2" using "var1". …
Practice post - Help with macro lists (for a mixed logit model)Summary: I am looking for help with a macro to cycle through a list of variables in groups of two or…
Subscribe to:
Post Comments (Atom)
0 Response to How to add names to points on a spatial graph using spmap.
Post a Comment