I need a little help understanding the output of my regression model. As a result of lm() I get that my slope is -1.2. However, when plotting the graph, it doesn't looke like the slope is actually -1.2 but much less. I also dont understand why my intercept looks that way. What am I missing?
library(zoo)
library(ggplot2)
a <- as.yearmon(c("2022-01", "2022-02", "2022-03", "2022-04", "2022-05"))
b <- c(2,0,2,1,1)
df <- data.frame(a,b)
df
ggplot(df, aes(x = a, y = b)) +
geom_point() +
stat_smooth(method = lm)
lm(b ~ a, df)
