Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Statistical Plots Package >

StemLeafPlot

StemLeafPlot[data]
creates a stem-and-leaf plot for the real-valued vector data.
StemLeafPlot[data1, data2]
creates a side-by-side stem-and-leaf plot for the vectors data1 and data2.
  • StemLeafPlot displays the distribution of real-valued numbers as stems and leaves in a tabular form.
  • Stems are multipliers of a base unit, and leaves are remainders rounded to a given number of digits.
  • StemLeafPlot has the same options as GridBox, with the following additions:
ColumnLabelsAutomaticlabels for the columns of the plot
IncludeEmptyStemsFalsewhether to display stems without leaves
IncludeStemCountsFalsewhether to include a column of leaf counts
IncludeStemUnitsTruewhether stem units should be included
Leaves"Digits"how leaves are represented
StemExponentAutomaticstem units given as an integer power of 10
StemLeafPlot of one dataset:
Side-by-side StemLeafPlot of two datasets:
Needs["StatisticalPlots`"]
StemLeafPlot of one dataset:
In[2]:=
Click for copyable input
Out[2]=
 
Needs["StatisticalPlots`"]
Side-by-side StemLeafPlot of two datasets:
In[2]:=
Click for copyable input
Out[2]=
StemLeafPlot with stem and leaf columns labeled with "S" and "L":
StemLeafPlot including stems which have no leaves:
Add stem counts to the plot:
Omit stem units legend from plot:
Represent leaves with tally marks:
Specify a base unit of 101:
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team