Hello everyone,
I have two problems with the spmap command and I need your help.
I am making a map for the provinces of Ecuador where I put the name of each province but in some provinces the name comes out and I would like to know if there is any way to put those names in two lines. On the other hand, I would like to know if there is a way to put the province of Azuay with a different color, for example gray.
spmap descronica_2 using prov_shp, id(_ID) clmethod(custom) clbreaks(19(2.85)42) fcolor(PuRd) osize(*0.15 ..) ndocolor(black) ndfcolor(gs14) ndlabel("No data") ndsize(*0.15 ..) legend(pos(7) size(*1.2)) ///
legend(label(2 "19% - 22%") label(3 "22% - 25%") label(4 "25% - 28%" ) label(5 "28% - 30%" ) label(6 "30% - 33%" ) label(7 "33% - 36%" ) label(8 "36% - 39%") label (9 "39% - 42%")) ///
legstyle(2) label(data("prov.dta") xcoord(_CX) ycoord(_CY) label(DPA_DESPRO) size(*0.50 ..) length(16)) legend(subtitle("Prevalencia", bexpand justification(center) size(small)))

Thanks.
I have two problems with the spmap command and I need your help.
I am making a map for the provinces of Ecuador where I put the name of each province but in some provinces the name comes out and I would like to know if there is any way to put those names in two lines. On the other hand, I would like to know if there is a way to put the province of Azuay with a different color, for example gray.
spmap descronica_2 using prov_shp, id(_ID) clmethod(custom) clbreaks(19(2.85)42) fcolor(PuRd) osize(*0.15 ..) ndocolor(black) ndfcolor(gs14) ndlabel("No data") ndsize(*0.15 ..) legend(pos(7) size(*1.2)) ///
legend(label(2 "19% - 22%") label(3 "22% - 25%") label(4 "25% - 28%" ) label(5 "28% - 30%" ) label(6 "30% - 33%" ) label(7 "33% - 36%" ) label(8 "36% - 39%") label (9 "39% - 42%")) ///
legstyle(2) label(data("prov.dta") xcoord(_CX) ycoord(_CY) label(DPA_DESPRO) size(*0.50 ..) length(16)) legend(subtitle("Prevalencia", bexpand justification(center) size(small)))
Thanks.

Comment