Scott Merryman, thank you. I agree. Can you help with the line of code based on the file I shared? Thank you.
-
Login or Register
- Log in with
shp2dta using "dohTrustBoundary", database(NIdb) coordinates(NIcoord) genid(id) gencentroids(c) replace use "NIdb", clear describe list id TrustName in 1/5 gen name="" replace name="Belfast" if id==1 replace name="Northern" if id==2 replace name="Western" if id==3 replace name="Southern" if id==4 replace name="South Eastern" if id==5 keep id x_c y_c name save "NI_labels", replace insheet using "trust rate.csv", clear sort id merge 1:1 id using "NIdb" spmap adjratepertho using "NIcoord", id(id) fcolor(Blues) /// label(data(NI_labels) x(x_c) y(y_c) label(name) color(black) size(2.5))
Comment