- This is a data set about movies and their Bechdel rating
- First we create a hypothesis: The later years have more movies with higher average Bechdel ratings.
- Second we create a visualization
df2 = df%>%
group_by(year)%>%
summarise(avgbechdelrating = mean(bechdelRating, na.rm = TRUE))
## Visualize Data
df%>%
ggplot(aes(x = year, y = bechdelRating))+
geom_point(alpha = .1)+
geom_smooth(method = 'lm',color = "red", se = FALSE) +
labs(title = "The Average Bechdel Rating of Movies for Each Year",
x = "Year", y="Bechdel Rating")
## `geom_smooth()` using formula = 'y ~ x'