Hi Stata users,
I am having a dataset of several variables and region and would like to explore spatial difference of the different variables
I hold the view the best summary for a region would be the mean.
The desired visualization is a heatmap as shown below

I would appreciate any guidance.
Thanks in advance
I am having a dataset of several variables and region and would like to explore spatial difference of the different variables
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte(sat_1 sat_2 sat_3 sat_4 sat_5) str8 region 0 1 0 2 4 "Region 1" 0 1 1 5 2 "Region 5" 1 1 0 4 2 "Region 2" 1 1 0 1 3 "Region 5" 0 1 0 3 1 "Region 1" 1 1 0 2 3 "Region 4" 0 1 1 4 1 "Region 3" 0 0 0 1 2 "Region 5" 0 1 1 3 1 "Region 4" 0 1 1 5 5 "Region 2" 0 0 1 4 4 "Region 4" 0 0 1 2 4 "Region 5" 1 0 0 2 2 "Region 1" 1 0 0 3 2 "Region 5" 1 1 0 4 1 "Region 4" 0 0 0 2 2 "Region 2" 0 0 1 2 1 "Region 5" 0 0 1 1 5 "Region 5" 0 1 0 1 1 "Region 5" 1 0 1 5 4 "Region 1" 0 0 1 4 5 "Region 5" 1 0 1 4 3 "Region 2" 1 1 1 3 1 "Region 5" 1 1 1 3 3 "Region 3" 0 0 0 4 5 "Region 3" 0 0 1 1 3 "Region 1" 0 1 0 5 1 "Region 2" 1 0 0 4 3 "Region 2" 0 0 0 3 1 "Region 3" 1 1 1 1 4 "Region 5" 1 0 1 3 3 "Region 2" 1 1 1 5 1 "Region 1" 1 0 1 2 4 "Region 2" 1 1 1 1 5 "Region 2" 0 1 1 4 3 "Region 3" 1 1 0 1 1 "Region 4" 0 1 0 4 3 "Region 2" 1 1 1 4 2 "Region 1" 1 0 1 3 1 "Region 2" 1 1 0 4 1 "Region 3" 0 0 1 5 1 "Region 2" 0 0 1 4 5 "Region 4" 0 0 1 3 5 "Region 5" 1 0 1 3 2 "Region 3" 0 0 0 3 1 "Region 2" 1 1 0 5 5 "Region 5" 0 1 1 2 1 "Region 3" 0 0 0 2 1 "Region 3" 0 1 0 3 5 "Region 4" 1 1 0 5 3 "Region 1" end
The desired visualization is a heatmap as shown below
I would appreciate any guidance.
Thanks in advance
Comment