stem.leaf(data, unit, m, Min, Max,
rule.line = c("Dixon", "Velleman", "Sturges"),
style = c("Tukey", "bare"), trim.outliers = TRUE, depths = TRUE,
reverse.negative.leaves = TRUE)
## S3 method for class 'stem.leaf':
print(x, ...)
100
, .01
);
omit to let the function choose the unit."Dixon"
= 10*log10(n); "Velleman"
= 2*sqrt(n);
"Sturges"
= 1 + log2(n); the default is "Dixon"
."Tukey"
(the default) for "Tukey-style" divided stems;
"bare"
for divided stems that simply repeat the stem digits.TRUE
(the default), outliers are placed on LO
and
HI
stems.TRUE
(the default), print a column of "depths" to the left of the
stems; the depth of the stem containing the median is the stem-count enclosed in
parentheses.TRUE
(the default), reverse the leaves on negative
stems (so, e.g., the leaf 9 comes before the leaf 8, etc.).stem
function in the base
package, this function produces
classic stem-and-leaf displays, as described in Tukey's Exploratory Data Analysis.
Outliers are determined using the rule for boxplots (see boxplot.stats
).stem
data(Prestige)
stem.leaf(Prestige$income)
Run the code above in your browser using DataLab