Created
June 12, 2020 13:28
-
-
Save StatsRhian/e364f54d2a79c8f25483123d9ba7a8e7 to your computer and use it in GitHub Desktop.
ggplot recap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
data(movies, package = "jrIntroduction") | |
# 1. Create a histogram of movie ratings | |
# 2. Play around with different binwidths | |
# 3. Change the histogram to a density plot | |
# 4. Add a title | |
# 5. Try changing | |
geom_density() # to | |
geom_density(aes(fill = classification), alpha = 0.5) | |
# What do you think ALPHA does? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment