extrobe
2/7/2017 - 4:20 PM

Ribbon Plot

Ribbon Plot

library(ggplot2)
library(lattice)

ggplot(barley,aes(x = year, y = yield, col = site, group = site, fill = site)) +
  stat_summary(fun.y = mean, geom = "line") +
  stat_summary(fun.data = mean_sdl, fun.args = list(mult = 1), geom = "ribbon", col = NA, alpha = 0.1)