Hi guys,
I am trying to map the result by using "spmap" command, yet keep having troubles with the error saying "master data not sorted"...
Below is the code that I used,
------------------------------------------------
use "$processed/production_regional.dta", clear
format weight_edible_ameday %4.2f
spmap weight_edible_ameday using vietmap_province_region3.dta, id(_ID) fcolor($colorscale) ///
legend(symy(*1) symx(*1) size(3) pos(4)) ///
title("Total harvest (kg/day/AME)", size($titlesize)) cln(7) ///clm(c) clb($cats) ///
note("Source: ***** crop production", size($notesize))
graph export "$maps/prod_region_weight.png", as(png) replace
------------------------------------------------
Can anyone tell me how I can resolve this problem?
Many thanks,
Manny
Related Posts with using "spmap"
How to remove an extra digit/character from a string variableDear Statalist users I have a dataset which has a string variable in three parts, by convention, se…
Linux: Make Stata default application of file type .dta (etc.)How can I change the default application of file types such as .dta, .do, .gph, .smcl to Stata? I su…
xtmerlogitFriends, I had this query; I am fitting three levels logistic-mixed effect model with Random coeff…
Checking to see if one variable is bigger than the otherDear Stata Users, I have two variables (Goal & Pledged). As I am looking to see what is my idea…
Extracting just the month as a new variable from a complete date Hi, I have a variable that shows me the date of funding in the format, "day, dd/month/year, time"…
Subscribe to:
Post Comments (Atom)
0 Response to using "spmap"
Post a Comment