Visualizing a heatmap Displaying a heatmap The following code shows a simple example of creating a heatmap. This example visualizes data about the location of earthquakes in Korea.