# Heat (and hexagon) plots in Stata

*Ben Jann*

London Stata Conference 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-09-15

**References:** Add references at CitEc

**Citations:** View citations in EconPapers (1)

**Downloads:** (external link)

http://repec.org/usug2019/Jann_uk19.pdf (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:usug19:24

Access Statistics for this paper

More papers in London Stata Conference 2019 from Stata Users Group Contact information at EDIRC.

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