When using stat_smooth()
with geom_point
is there a way to remove the shaded fit region, but only draw its outer bounds? I know I can remove the shaded region with something like:
geom_point(aes(x=x, y=y)) + geom_stat(aes(x=x, y=y), alpha=0)
but how can I make the outer bounds of it (outer curves) still visible as faint black lines?
There are most likely easier ways, but you may try this as a start. I grab data for the confidence interval with
ggbuild
, which I then use ingeom_line
You can also use
geom_ribbon
withfill
= NA....and if for some reason you don't want the vertical bars, you can just use two
geom_line
layers: