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?
Nominal Dependent Variable and Nominal Independent Variable - Multiple Reader StudyHi Everyone, I am analyzing a study that asks participants to use a COVID diagnosis rating scale on…
overlapping graph lines are obscuredHi there I would like to plot multiple lines on a graph, but often these lines overlap, in which ca…
collinearity diagnostics for ordered logistic regressionDear researchers, I am trying to get the VIF after running the xtologit but it doesn't work with me…
pweight not allowed - helpHello, I am trying to use the pweight subcommand, but I am getting the error that it isn't allowed. …
How to make this graph with stack option?Dear all, I would like to make a graph as shown below. In my simple example, I calculated concentra…
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