3
Exploring the data First we need to explore the dataset. Often, it is too large to look at once. 3 > # view first few lines of the dataset. > head(trees) Girth Height Volume > # view first few lines of the dataset. > head(trees) Girth Height Volume

10
Stemplot The number on the left of the bar is the stem. The number on the right – the leaf. 10 > # stemplot for Girth variable > stem(trees$Girth) The decimal point is at the | 8 | | | | | | | 6 > # stemplot for Girth variable > stem(trees$Girth) The decimal point is at the | 8 | | | | | | | 6

11
Stemplot The number on the left of the bar is the stem. The number on the right – the leaf. 11 > # stemplot for Girth variable > stem(trees$Volume) The decimal point is 1 digit(s) to the right of the | 1 | | | | 3 5 | | 7 | 7 > # stemplot for Girth variable > stem(trees$Volume) The decimal point is 1 digit(s) to the right of the | 1 | | | | 3 5 | | 7 | 7

12
Stemplot In some cases we might want to change the default settings of the function 12 > # change the “scale” of the stemplot > stem(trees$Volume, scale =.5) The decimal point is 1 digit(s) to the right of the | 0 | | | | 7 > # change the “scale” of the stemplot > stem(trees$Volume, scale =.5) The decimal point is 1 digit(s) to the right of the | 0 | | | | 7