spruce | R Documentation |
This is data of the breast height diameters and heights for a sample of 36 white spruce trees. In forestry, the diameter of a tree at breast height (which is fairly easy to measure) is used to predict the height of the tree (a difficult measurement to obtain).
spruce
A data frame with 36 observations (rows) and 2 variables (columns).
Column name | Data type | Description | Values | |
[,1] | DIAMETER | numeric | Diameter of the tree in cm | (5.8 - 29.8) |
[,2] | HEIGHT | numeric | The height of the tree in meter | (8.0 - 22.3) |
This data is from Exercise 3.56 in A second course in statistics: Regression Analysis, 7th edition.
Mendenhall, W., Sincich, T. (2012) A second course in statistics: Regression Analysis, 7th edition. Pearson Education.
# First eight and last six rows
head(spruce, n = 8)
tail(spruce)
# Plotting the tree height against the diameter
plot(HEIGHT ~ DIAMETER, data = spruce)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.