library(ggplot2)
studio_albums <- subset(taylor_albums, !ep)
# by default, albums get plotted in alphabetical order
ggplot(studio_albums, aes(x = metacritic_score, y = album_name)) +
geom_col()
# use `album_levels` to create a sensible factor variable
studio_albums$album_name <- factor(studio_albums$album_name,
levels = album_levels)
ggplot(studio_albums, aes(x = metacritic_score, y = album_name)) +
geom_col()
Run the code above in your browser using DataLab