Stem-and-Leaf Plot
Description
The following R command calculates a stem-and-leaf plot of Babe Ruth's career homers for each season that he played in major league baseball.
To use R in a Sage cell, the language must be set to R. See https://github.com/sagemath/sagecell/blob/master/doc/embedding.rst for details.
Sage Cell
Code
ruth <- c(22, 25, 34, 35, 41, 41, 46, 46, 46, 47, 49, 54, 54, 59, 60)
stem(ruth)
Options
None
Tags
Primary Tags: Statistics: Exploratory data analysis/descriptive statistics
Secondary Tags: Exploratory data analysis/descriptive statistics: Graphical representations
Related Cells
- Constructing Histograms with R
- Box plots with R
- Constructing Pie Charts with R
- Constructing Time Series Plots with R
Attribute
Permalink:
Author: T. Judson
Date: 19 Jul 2017 10:20
Submitted by: Tom Judson