--- title: "Mosaic plot" slug: "mosaic-plot" updated: 2026-10-23T07:06:28Z published: 2026-10-23T07:06:28Z canonical: "userguide.dataclassroom.com/mosaic-plot" --- > ## Documentation Index > Fetch the complete documentation index at: https://userguide.dataclassroom.com/llms.txt > Use this file to discover all available pages before exploring further. # Mosaic plot The **Mosaic plot** shows the distribution of categorical values in a 2D array, which can be a good way to convey insights about the dataset: ![](https://cdn.document360.io/62f8f41e-e041-42c4-b9bc-8ae1eb45d064/Images/Documentation/image-1792430652652.png) You can see this example - the **hair and eye color** dataset - [in DataClassroom here](https://dataclassroom.com/en/dataseteditor/af26614f-21f9-4e15-a9e3-a2b2cbc149f7). ## Creating a mosaic plot On the graph tab, go to **Specialized graphs** -> Mosaic plot: ![](https://cdn.document360.io/62f8f41e-e041-42c4-b9bc-8ae1eb45d064/Images/Documentation/specialized-menu-mosaic.png) This will switch you into the **Mosaic view**, where you can select which columns of **categorical data** you want to apply to your axes: ![](https://cdn.document360.io/62f8f41e-e041-42c4-b9bc-8ae1eb45d064/Images/Documentation/image-1792564051474.png) ## Choosing colors You can choose to color by one of your variables, using the **Color by** option: ![](https://cdn.document360.io/62f8f41e-e041-42c4-b9bc-8ae1eb45d064/Images/Documentation/image-1792564965178.png) The colors it uses are the ones selected for the values of your categorical variables (same as [Customizing categorical variables](/v1/docs/customizing-categorical-variables)) and you can change them via the small **gear icons**. ### Residuals Alternatively, you can color **by residuals**. The default method is **Pearson**, but you can also select **Freeman-Tukey** or **Deviance**. ![](https://cdn.document360.io/62f8f41e-e041-42c4-b9bc-8ae1eb45d064/Images/Documentation/image-1792431263890.png)