Tenness | R Documentation |
Data for Exercise 6.56
Tenness
A data frame/tibble with 20 observations on one variable
Tennessee Self-Concept Scale score
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
hist(Tenness$score, freq= FALSE, main = "", col = "green",
xlab = "Tennessee Self-Concept Scale score")
lines(density(Tenness$score))
## Not run:
library(ggplot2)
ggplot2::ggplot(data = Tenness, aes(x = score, y = ..density..)) +
geom_histogram(binwidth = 2, fill = "purple", color = "black") +
geom_density(color = "red", fill = "pink", alpha = 0.3) +
theme_bw()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.