I am trying to create a heatmap that is gridded by 10% deciles of two variables. I want them to measure in terms of Y. So I have a series, say x1 and another x2 and used the following
and I get the following:

I want to put labels for the axes and a legend for what each colour represents. The documentation for -hmap- is severely lacking in options.
Side note: the grey squares imply missing observations which is ok.
In short: Is anyone familiar with -hmap- or have an alternative? I may just settle on creating a contour plot if I can't figure this out by the end of the week.
Thanks ahead!
Code:
xtile dx1 = x1, nquantiles(10) xtile dx2 = x2, nquantiles(10) hmap dx1 dx2 y, noscatter
I want to put labels for the axes and a legend for what each colour represents. The documentation for -hmap- is severely lacking in options.
Side note: the grey squares imply missing observations which is ok.
In short: Is anyone familiar with -hmap- or have an alternative? I may just settle on creating a contour plot if I can't figure this out by the end of the week.
Thanks ahead!
Comment