Hi,
I have the first map and I want to outline with with a different color the municipalities in the center (identified with the variable coastal). When I try to do that I get the second map. I am using the following code:
spmap hom1 using "coords.dta", id(id) fcolor("`colors'") ocolor(white ..) ///
osize(0.05 ..) clmethod(custom) clbreaks(0 1 5 15 50 100 200 400) ///
legend(pos(5) size(1.8) region(fcolor(gs15)))
preserve
keep if coastal==2
rename id _ID
keep _ID
merge 1:m _ID using "coords.dta"
keep if _merge==3
save coords2.dta, replace
restore
spmap hom1 using "coords.dta", id(id) fcolor("`colors'") ocolor(white ..) ///
osize(0.05 ..) clmethod(custom) clbreaks(0 1 5 15 50 100 200 400) ///
legend(pos(5) size(1.8) region(fcolor(gs15))) ///
polygon(data("coords2.dta") ocolor(maroon) osize(.1))


Thanks,
Tessa
I have the first map and I want to outline with with a different color the municipalities in the center (identified with the variable coastal). When I try to do that I get the second map. I am using the following code:
spmap hom1 using "coords.dta", id(id) fcolor("`colors'") ocolor(white ..) ///
osize(0.05 ..) clmethod(custom) clbreaks(0 1 5 15 50 100 200 400) ///
legend(pos(5) size(1.8) region(fcolor(gs15)))
preserve
keep if coastal==2
rename id _ID
keep _ID
merge 1:m _ID using "coords.dta"
keep if _merge==3
save coords2.dta, replace
restore
spmap hom1 using "coords.dta", id(id) fcolor("`colors'") ocolor(white ..) ///
osize(0.05 ..) clmethod(custom) clbreaks(0 1 5 15 50 100 200 400) ///
legend(pos(5) size(1.8) region(fcolor(gs15))) ///
polygon(data("coords2.dta") ocolor(maroon) osize(.1))
Thanks,
Tessa
Comment