Hey everyone,
I was wondering how it is possible to add values into an existing plot. The following code plots a model I estimated.
modelplot(model, coef_omit = "^(?!.*xyz)") +
geom_vline(xintercept = 0, linetype = "dashed", color = "red") +
scale_y_discrete(labels = c(seq(1900, 1904, by = 1), seq(1906, 1910, by = 1)))
Now I would like to add a point at x = 0, y = 5. If I use
geom_point(aes(x = 0, y = 1905), color = "black")
the point is added in the very beginning of the graph at y = 1900 and the other values shift back.
How do I add the point in the middle of my graph at exactly the values I want it at?
The problem arises as I estimated a model where the year 1905 is the treatment year and thus normalized to 0. The coefficient is, therefore, also 0. There is certainly a better way of estimating the model such that the value for 1905 is included in the model, but in my current solution I have to add the point manually...
Thank you and all the best!