2-1. Exercises
1. Basic Exercises
69 92 68 77 80 70 85 88 85 96 93 75 76 82 100 53 70 70 82 85data <- c(69, 92, 68, 77, 80, 70, 85, 88, 85, 96, 93,
75, 76, 82, 100, 53, 70, 70, 82, 85)
# 1. Stem and Leaf Diagram
stem(data)
# 2. Frequency Histogram
hist(data, xlim = c(50, 110),
ylim = c(0, 7),
breaks = seq(51, 101, by=10))
# 3. Relative Frequecny Histogram
require(lattice)
require(openintro)
histogram(data, type = "percent",
xlim = c(50, 110),
ylim = c(0, 35),
breaks = seq(51, 101, by=10))> stem(data)
##
## The decimal point is 1 digit(s) to the right of the |
##
## 5 | 3
## 6 | 89
## 7 | 000567
## 8 | 0225558
## 9 | 236
## 10 | 0


2. Application Exercises
3. Additional Exercises
4. Comparative Stem and Leaf Plot

Last updated