I am using a data set pictured below to generate this figure using ggplot. I am attempting to add a trend line to the plot. I have tried multiple times to add the line in different methods and have not been able to figure it out. I appreciate any help you are able to provide.
Data table pictured below:
enter image description here
I have used the code below to generate the plot below but have not been able to find a way to add a trend line to the plot. If anyone is able to help I would greatly appreciate it.
enter image description here
ggplot(IIHGLPy, aes(x=Year, y=TotGLP)) +
geom_point(shape=18, color="black") +
geom_smooth(method = lm, formula = (y ~ exp(x)), se = FALSE, color = "blue") +
labs(title = "GLP-1 Agonist Trend in IIH Patients",
x = "Years", y = "Total Number of Patients on GLP-1 Aogonists")