Heatmap diagram can be used to visualize tabulated dataset. Correlation coefficient table generated in Origin is suitable to be presented this way. In addition, user may also want to label the exact Z value of each block in the heatmap for comparison as shown above. In this blog we will show the steps to generate such diagram. Please download the attached zip file to see the result. Note that Heatmap with labels is a new plot type introduced in Origin 2019. For earlier versions of Origin, user has to manually add points to the heatmap and label them.
1. Open a new project or a new workbook. Import the data file \samples\Statistics\Protein Consumption in Europe.dat.
2. Hightlight col(B) through col(J), then select Statistics: Descriptive Statistics: Correlation Coefficient.
3. In the dialog, make sure under Correlation Types node, Pearson checkbox is checked. Click OK.
4. Switch to Pearson1 worksheet, highlight entire worksheet and choose Plot: Heat map: Heatmap with Labels menu. In the dialog, set X and Y data info as below and click OK to create heatmap.
5. The colormap levels are from -0.715 to 1. To change the levels to be from -1 to 1, right click the plot and choose Colormap: Set Levels context menu. Set the levels to -1 to 1. Increment by 0.4.
6. Double click on the graph, switch to Label tab. Change the label formats as below: