Whenever I try to run the plot function, it shows me a error. How do I get rid of this error? Please help.
edx %>% group_by(movieId) %>% summarize(n = n()) %>% ggplot(aes(n)) +
geom_histogram(fill = "rosybrown2", col .... [TRUNCATED]
summarise()
ungrouping output (override with .groups
argument)
Code:
edx %>% group_by(movieId) %>%
summarize(n = n()) %>%
ggplot(aes(n)) +
geom_histogram(fill = "rosybrown2", color = "black", bins = 10) +
scale_x_log10() +
ggtitle("Total number of movies Ratings")