![Color cells in a mosaic plot by deviation from independence](https://blogs.sas.com/content/iml/files/2018/07/MosaicStdRes-640x336.png)
Back in SAS 9.3M2 (SAS/STAT 12.1), PROC FREQ introduced mosaic plots to visualize the joint frequencies in a contingency table. By default, the cells in a mosaic plot are colored according to levels of one of the categorical variables in the analysis. However, in 2013 I showed how you can