# Heat (and hexagon) plots in Stata

*Ben Jann* ()

German Stata Users' Group Meetings 2019 from Stata Users Group

**Abstract:**
In this presentation, I will present two new Stata commands to produce heat plots. Generally speaking, a heat plot is a graph in which one of the dimensions of the data is visualized using a color gradient. One example of such a plot is a two-dimensional histogram in which the frequencies of combinations of binned X and Y are displayed as rectangular (or hexagonal) fields using a color gradient. Another example is a plot of a trivariate distribution where the color gradient is used to visualize the (average) value of Z within bins of X and Y. Yet another example is a plot that displays the contents of a matrix, say, a correlation matrix or a spacial weights matrix, using a color gradient. The two commands I will present are called heatplot and hexplot.

**Date:** 2019-07-10

**References:** Add references at CitEc

**Citations:** Track citations by RSS feed

**Downloads:** (external link)

http://repec.org/dsug2019/germany19_jann.pdf presentation materials (application/pdf)

**Related works:**

Working Paper: Heat (and hexagon) plots in Stata (2019)

This item may be available elsewhere in EconPapers: Search for items with the same title.

**Export reference:** BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text

**Persistent link:** https://EconPapers.repec.org/RePEc:boc:dsug19:01

Access Statistics for this paper

More papers in German Stata Users' Group Meetings 2019 from Stata Users Group Contact information at EDIRC.

Bibliographic data for series maintained by Christopher F Baum ().