Skip to content

Instantly share code, notes, and snippets.

@StatsRhian
Created June 12, 2020 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StatsRhian/e364f54d2a79c8f25483123d9ba7a8e7 to your computer and use it in GitHub Desktop.
Save StatsRhian/e364f54d2a79c8f25483123d9ba7a8e7 to your computer and use it in GitHub Desktop.
ggplot recap
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