Hello everyone!
I am doing the hierarchical clustering model in Stata on the county level. My results give 800 different clusters. Therefore, I would like to produce a map showing different clusters. However, I don't know if there is any palette in Stata that generate 800 different colors to map each cluster results (there are 3140 counties in total). I am using maptile developed by Michael Stepner would like to ask what should I do (I can also do it in spmap if it is easier). Here is my code
use cluster_results, clear
cluster generate cluster = gr(810)
maptile cluster, geo(county1990) fcolor(Paired)
This is what it gives me:
Array
This is what I want (produced from R)
Array
Thank you very much!
Related Posts with How can I plot distinct color for different cluster results in a map setting?
Synthetic Control Aggregating Data from firm levelMy question is focused on finding the effect of the Brexit vote on the profitability of UK banks. I …
How to specify family-level option for psmatch2 (my data is at the child-level)Hi everyone, first post so pardon me if I'm making a rookie mistake. I want to compare the differen…
How to deal with a difference in difference fixed effects model with a discrete treatment variable?Hi, I am trying to conduct a fixed effects difference in difference model to estimate the effect of …
Droping outliers based on different criteriaDear all, I use Stata 13 and I want to calculate average value of X removing outliers (1st and 99th…
Add lable to binary variableHello. I have a binary variable "size" : 1 means it's small, 0 means it's large. But in my data bas…
Subscribe to:
Post Comments (Atom)
0 Response to How can I plot distinct color for different cluster results in a map setting?
Post a Comment