Dear Statalisters,
I have tried hmap, heatplot and corrtable. They are all amazing programs, but I could not figure out how to obtain the results we need.
Let me be more specific:
I have data like this:

And I need the following features:
All the best,
Tiago
I have tried hmap, heatplot and corrtable. They are all amazing programs, but I could not figure out how to obtain the results we need.
Let me be more specific:
I have data like this:
Code:
clear all set obs 64 g n=int(uniform()*10) g x=1+int((_n-1)/8) g y=1+mod((_n-1),8) la def xlab 1 "one" 2 "two" 7 "seven" 8 "eight" la def ylab 3 "three" 4 "four" 5 "five" 6 "six" la val x xlab la val y ylab ta y x [fw=n] label define test 9 "good" 8 "mild" label values n test hmap x y n hmap x y n, sc
And I need the following features:
- Plot labels, not numbers in the variable called "n" (hmap does that)
- Be able to specify colors. For example, if n > 7 & n <9 the color should be green, if n == 2 the color should be blue, etc.
- Put the horizontal axis/stick at the top
All the best,
Tiago
Comment