I'm trying to make the confidence intervals in this graph reach the data points. Basically I have max and min values and I want a line through the mean and the space between the max and min to be shaded. How can I achieve this?
This is what my code looks like to make the graph pictured below:
ggplot(MassModels, aes(x = Length, y = Mass, color = Model)) + scale_shape_manual(values = c(1,2,0,3,4,8,10)) + theme(legend.position="none") + geom_point() + geom_smooth(method = loess, se=T) + labs(x=expression("TL (cm)"), y=expression(M[b] (kg)))


