SPMAP polygon/line - select sub options

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

SPMAP polygon/line - select sub options

Alexandra López
This post has NOT been accepted by the mailing list yet.
Hello,

I am trying to draw a subset of regions on top of my baseman and i get an error on the "select" suboption of my polygon command, i get the same error when I use line instead of polygon.

My command is:

spmap lqminingfs using "uscoord.dta" if STATE_FIPS!=2 & STATE_FIPS!=15, id(id) mosize(thick) clmethod(custom) clbreaks(0 0.9 1.01 2.01 5.01 10.6 20.1 50.01 150)fcolor("198 219 239" "252 251 253" "252 220 200" "252 146 114" "251 106 74" "239 59 44" "203 24 29" "153 0 13") legend(size(3) label(2 "<1") label(3 "1") label(4 ">1") label(5 ">2") label(6 ">5") label(7 ">10") label(8 ">20") label(9 ">50") color(gs6)) title({bf:Localization of Mining Employees}, color(gs6)) subtitle("1980") polygon(data("uscoord.dta") select(keep if uarea>0) ocolor(blue))

uarea is a dummy variable I have created on my dataset that is 1 if I want the variable to be represented on the subregion map. I don't know if my mistake is really on the commands or there is a problem using the same .dta file.

Could anyone help me with this?

Thank you in advance,

Alexandra
Loading...