I’m working in ggplot and I have a plot with the following code:
plot <- ggplot(data, aes(x=Site, y=ratio, colour = Site)) +
geom_point(stat="summary", fun.y= "mean", size = 4) +
geom_point (size = 1, alpha = .3) +
stat_summary(fun.data= mean_se, geom = "errorbar", width = .2, linewidth = 0.3) +
theme(legend.position = "none")
I’m receiving the following error message:
Warning in geom_point(stat = "summary", fun.y = "mean", size = 4) :
Ignoring unknown parameters: `fun.y`
No summary function supplied, defaulting to `mean_se()`
I’m not sure what the issue is. Thanks for any advice.
I tried replacing mean_se with mean_se() and that didn’t work.