I'm trying to create a graph depicting the mean percentages of my data.
I've used geom_jitter combined with geom_smooth, to do this, but the ribbon of geom_smooth is exceeding 100% which isn't possible.
Is there a way to limit the extent the ribbon can reach?
Here is my code:
Impingement_Graphs <- ggplot() +
geom_jitter(data = Impingedata, stat = "summary", fun = "mean", mapping = aes(x = AV, y = `impg %`), colour = "black") +
geom_smooth(data = Impingedata, mapping = aes(x = AV, y = `impg %`), colour = "black") +
facet_wrap(~Stage) +
theme(
panel.background = element_blank(),
panel.grid = element_blank()
)
Cheers in advance