The data frame KINDER
contains the height in inches and weight in pounds of 20 children from a kindergarten class.
KINDER
A data frame with 20 observations on the following 2 variables:
ht
(height in inches of each child)
wt
(weight in pounds of each child)
Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. Chapman & Hall / CRC.
ggplot(data = KINDER, aes(x = ht, y = wt)) + geom_point(color = "blue") +
geom_smooth(method = "lm", color = "red") + labs(x = "height in inches",
y = "weight in pounds")
#> `geom_smooth()` using formula 'y ~ x'