Scales | R Documentation |
Data for Exercise 1.89
Scales
A data frame/tibble with 20 observations on two variables
variable indicating brand of bathroom scale (A
, B
, C
, or D
)
recorded value (in pounds) of a 100 pound weight
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
boxplot(reading ~ brand, data = Scales, col = rainbow(4),
ylab = "Weight (lbs)")
## Not run:
library(ggplot2)
ggplot2::ggplot(data = Scales, aes(x = brand, y = reading, fill = brand)) +
geom_boxplot() +
labs(y = "weight (lbs)") +
theme_bw() +
theme(legend.position = "none")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.