My problem: I try to add average points of the sample to the plot, but the R doesn't allow me to, because the size of the data is not the same as the original one. I tried to make it so, that on the geom_point() layer the x and y are the same as the one on ggplot but still I get error: Error: Aesthetics must be either length 1 or the same as the data (3): x and y
ggplot(data = all_avg, aes(x = year_film, y = avg_rating, col = Award)) +
geom_point() +
geom_point(data = all_avg_means, size = 2, aes(x = all_avg$year_film, y = all_avg$avg_rating))
I simply want to add three averages to the plot.