- //heatmap-Graphs a heatmap.
- /*Requires: cbarplot
- to download this program type the following on the Stata
- command line (if not already loaded):*/
- ssc install hmap
- //To run the example: copy the following into a do file and run
- // producing the data
- clear all
- set obs 64
- generate n=int(uniform()*10)
- generate x=1+int((_n-1)/8)
- generate y=1+mod((_n-1),8)
- label define xlab 1 "one" 2 "two" 7 "seven" 8 "eight"
- label define ylab 3 "three" 4 "four" 5 "five" 6 "six"
- label value x xlab
- label value y ylab
- table y x [fw=n]
-
- hmap x y n


雷达卡
京公网安备 11010802022788号







