Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

MosaicPlot

Tech Notes

  • Mosaic plots for data visualization
  • Mosaic plots for numerical variables via categorical mapping

Symbols

  • MakeTooltipTable
  • MosaicPlot
AntonAntonov`MosaicPlot`
MosaicPlot
​
MosaicPlot
[rarr]
makes a mosaic plot that summarizes the conditional probabilities of categorical values co-occurrence in a list of records of the same length (a full array or dataset).
​
​
MosaicPlot has options for adjusting the
gap
between the rectangles, the style of the labels, the rotation of the labels, and from which
side
to start the rectangle splitting.
​
​
MosaicPlot also takes all the options of
Graphics
.
​
Details and Options

Examples  
(3)
Basic Examples  
(1)
Here is a random dataset with categorical values:
In[1]:=
SeedRandom[49];​​dsData=ResourceFunction["RandomTabularDataset"][{30,3},"Generators"{CharacterRange["a","c"],ToString/@RandomInteger[{0,30},3],ResourceFunction["RandomPetName"][3]}];​​dsData[1;;3]
Out[1]=
Here is the corresponding mosaic plot:
In[2]:=
MosaicPlot
[dsData,ImageSizeMedium]
Out[2]=
Contents cannot be rendered at this time; please try again later
Here we rotated the labels and put column names away from the plot:
In[3]:=
MosaicPlot
[dsData,"ColumnNamesOffset"0.12,"LabelRotation"{{3,1},{1,1}},ImageSizeMedium]
Out[3]=
Contents cannot be rendered at this time; please try again later
Options  
(1)

Applications  
(1)

SeeAlso
MakeTooltipTable
TechNotes
▪
Mosaic plots for data visualization
▪
Mosaic plots for numerical variables via categorical mapping
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com