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?
How to create an aggregate observational unit by adding values by country and year.Hello, I have the following dataset for a number of countries. I would like to generate an aggregate…
egen, groupDear All, Suppose that I have this data set (the original question is here), Code: * Example genera…
Collapse and generate average valuesDear, I want to collapse the years into periods of, say, two years each. For example, if I have a p…
Robust Standard Errors how to get value for Wald Chi^2?Hello everyone! I am running panel data regressions and am using the 'robust' command as I think my…
Finding Market SharesHi all, I have a data in the following format. I need to calculate the market share where market sh…
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