Hello, below is my main dataset used for creating a map using the 'spmap' command in STATA.
The basemap dataset containing the spatial data is very large and I'm not sure how to attach it here. But I will attach add pictures for visualization.
I can create the map for the wards in my dataset using this code:
You wont be able to access that basemap dataset but the command generates this output, each polygon corresponds to a ward:

Some of these wards belong to certain districts (variable "district") how do I highlight the outer boundaries of wards which make up certain districts with different colors? And for neighboring districts perhaps their shared border outline could be dashed, with each dash alternating the colors of both districts.
Please let me know if I could be of more assistance in illustrating my problem.
Thanks,
Jad
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(ward district) 25744 71101 25747 71101 25774 71101 25813 71103 25819 71103 25822 71103 25840 71103 25843 71103 25846 71103 25888 71105 25894 71105 25900 71105 25903 71105 25912 71105 25915 71105 25942 71113 25948 71113 25951 71113 25960 71113 25972 71107 25987 71107 25741 71101 25756 71101 25777 71109 25780 71109 25783 71109 25786 71109 25792 71109 25804 71109 25807 71109 25810 71109 25816 71103 25825 71103 25828 71103 25831 71103 25834 71103 25837 71103 25852 71103 25855 71103 25858 71111 25861 71111 25864 71111 25867 71111 25870 71111 25873 71111 25876 71111 25879 71111 25885 71111 25891 71105 25897 71105 25927 71105 25930 71105 25936 71105 25939 71105 25945 71113 25957 71113 25963 71107 25966 71107 25969 71107 25975 71107 25978 71107 25981 71107 25984 71107 25990 71107 end
The basemap dataset containing the spatial data is very large and I'm not sure how to attach it here. But I will attach add pictures for visualization.
I can create the map for the wards in my dataset using this code:
Code:
spmap using "$shape/2017 shapefile/VNM_consistent_wards_mainland/Consistent_wards_coord.dta", /// id(ward)
Some of these wards belong to certain districts (variable "district") how do I highlight the outer boundaries of wards which make up certain districts with different colors? And for neighboring districts perhaps their shared border outline could be dashed, with each dash alternating the colors of both districts.
Please let me know if I could be of more assistance in illustrating my problem.
Thanks,
Jad
Comment