I am getting an error I can't figure out. This may well be something dumb, like a misspelling or missing parens, but I can't see it.
My plot command:
ggplot(df, aes(flim, flam, group=1)) +
geom_point(aes(size=foo)) + geom_line() +
geom_smooth(stat='identity', aes(ymin=flam - flam_c95,
ymax=flam + flam_c95))
Warning: Ignoring unknown aesthetics: ymin, ymax
You can use
geom_ribbon in place of
stat = "identity" to draw intervals around your line.
geom_ribbon(aes(ymin=flam - flam_c95, ymax=flam + flam_c95))