Hello,
R doesn't let me execute a stat_summary function when drawing a bar graph.
I load a csv file into a dataframe:
df <- read.csv("spelling.csv")
The commands for the graph:
bar <- ggplot(df, aes(Group, Errors))
bar + stat_summary(fun = mean, geom = "bar", fill = "White", colour = "Black")
The stat_summary causes the problem. R Studio throws the following error message:
Warning message:
Computation failed in stat_summary():
Can't convert a double vector to function
Why do I get this error message? How can I fix this?
I would appreciate any help.
Thanks!
Best, Andreas