Skip to content

Instantly share code, notes, and snippets.

@NuoWenLei
Last active June 13, 2022 02:54
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 NuoWenLei/283558cc7b324decf2e22facdd025522 to your computer and use it in GitHub Desktop.
Save NuoWenLei/283558cc7b324decf2e22facdd025522 to your computer and use it in GitHub Desktop.
.Rproj.user
.Rhistory
.RData
.Ruserdata
*.Rproj
library(tidyverse)
library(primer.data)
ggplot(data = qscores,
mapping = aes(x = rating)) +
geom_histogram(bins = 5,
color = "white",
fill = "coral") +
labs(title = "Histogram of Student Ratings of Harvard Classes",
subtitle = "Ratings of 1 and 2 are very rare",
x = "Rating",
y = "Count",
caption = "Source: Harvard Q-Guide (2018-2019)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment