# NOT RUN {
library(ggplot2)
# Visualize relationship between rating and genre
ggplot(data = movies_sample, aes(x = genre, y = rating)) +
geom_boxplot() +
labs(x = "Genre: Action or Romance", y = "IMDb rating")
# }
Run the code above in your browser using DataLab