I'm trying to make a boxplot for some data I have and I've entered the following code:
rating_mean_plot <- data %>%
mutate(GROUP = recode(GROUP, "ontrol" = "control"), na.rm = T) %>%
ggplot(aes(x = GROUP, y = ITEM_2, ITEM_1, ITEM_3)) +
labs(x = "Condition", y = "Mean Attractiveness Rating") +
stat_summary(fun.data = "mean_cl_boot", geom = "errorbar", width = .25) +
geom_point(stat = "summary", fun.y = "mean", size = 4, shape = 20, color = "red", fill = "grey") +
ylim(0,7) +
theme_cowplot()
rating_mean_plot
However it has come up with the following errors
Duplicated aesthetics after name standardisation: Ignoring unknown parameters: fun.y
No summary function supplied, defaulting to `mean_se()
Removed 17 rows containing non-finite values (stat_summary)
any help on this would be greatly appreciated :)