Library
library(aplpack)
library(graphics)
Stem-and-Leaf
stem(iris$Petal.Length,scale=1) #Base
##
## The decimal point is at the |
##
## 1 | 012233333334444444444444
## 1 | 55555555555556666666777799
## 2 |
## 2 |
## 3 | 033
## 3 | 55678999
## 4 | 000001112222334444
## 4 | 5555555566677777888899999
## 5 | 000011111111223344
## 5 | 55566666677788899
## 6 | 0011134
## 6 | 6779
stem.leaf(iris$Petal.Length, 0.1) #Applack
## 1 | 2: represents 1.2
## leaf unit: 0.1
## n: 150
## 24 1* | 012233333334444444444444
## 50 1. | 55555555555556666666777799
## 2* |
## 2. |
## 53 3* | 033
## 61 3. | 55678999
## (18) 4* | 000001112222334444
## 71 4. | 5555555566677777888899999
## 46 5* | 000011111111223344
## 28 5. | 55566666677788899
## 11 6* | 0011134
## 4 6. | 6779
Boxplot
boxplot(weight~Diet, data = ChickWeight,
ylab = "Berat Ayam (cm)",
boxwex = 0.5)
