.BG
.VE $Header: /usr3/s/current/s/.help/RCS/stem,v 1.3 83/12/30 19:35:04 rab Exp $
.FN stem
.TL
stem: Stem and Leaf Display
.CS
stem(x, nl, scale, twodig, fence, head, depth)
.PP
.AG x
numeric vector to be displayed.  Missing values (NAs) are
allowed.
.AG nl
number of different leaf values on a stem.  Allowed values
are 2, 5, 10.  Default is to determine an appropriate value
automatically.
.AG scale
position at which break occurs between stem and leaf,
counting to the right from the decimal point; e.g., -1 would
break between the tens and the units digit.  By default, a
suitable position is chosen from the range of the data.
.AG twodig
number of leaf digits, 1 or 2 (default 1).
.AG fence
the multiple of the inter-quartile range used to determine
outliers.  By default, any point further than 2 
inter-quartile ranges from the nearest quartile is considered an
outlier, and is printed separately from the body of the stem
and leaf display.
If the inter-quartile range is zero, the algorithm performs outlier
detection by means of quartiles of the remainder of the data
after exclusion of values equal to the median and quartiles.
.AG head
logical, default TRUE, which controls heading giving median,
quartiles, and counts of data values and NAs.
.AG depth
logical, default FALSE, controls printing of optional initial
columns of `stem' output: depth and count.
The count is the number of data values on a line.
The depth is the cumulative sum of the counts to the nearer extreme.
.EX
stem(lottery.payoff)
.ft CW
.ps -3
.vs -3

N = 254   Median = 270.25
Quartiles = 194, 365

Decimal point is 2 places to the right of the colon

   0 : 8
   1 : 000011122233333333333344444
   1 : 55555566666677777778888888899999999999
   2 : 0000000111111111111222222233333333444444444
   2 : 555556666666666777778889999999999999999
   3 : 000000001111112222333333333444
   3 : 55555555666667777777888888899999999
   4 : 0122234
   4 : 55555678888889
   5 : 111111134
   5 : 555667
   6 : 44
   6 : 7

High: 756.0 869.5

.ps +3
.vs +3
.ft 1
.KW basic*
.KW histogram
.KW summary
.WR
