I have data of womens mile world record progression and have fit the model
women$Time <- c(277.00, 276.80, 275.30, 269.50, 263.80, 262.10, 261.70, 260.89, 258.08, 257.44, 256.71, 255.61, 252.56, 252.33)
women$Year <- c(1967, 1969, 1971, 1973, 1977, 1979, 1980, 1981, 1982, 1982, 1985, 1989, 1996, 2019))
wmod<- drm(women, Time ~ Year-1967, fct = EXD.3()
I have plot the model using ggplot
wpred <- predict(wmod, interval='conf', level=0.95) #getting confidence interval
y<- cbind(women, wpred) #combining with original dataframe
ggplot(data=y, aes(x=Year, y=Time))+geom_point()+
geom_line(aes(y=fitted(w2)))+theme_minimal()+
geom_ribbon(aes(ymin= Lower, ymax=Upper), alpha=0.3, fill="pink")+
ggtitle('Womens Fitted Model')+theme(plot.title = element_text(hjust = 0.5, face="bold"))
and it looks great, I can see the confidence interval, the model line and the points. When I extend x axis by adding scale_x_continuous(limits=c(1967, 2100)) it re-adjusts the axis but doesn't include the model or confidence interval. How do I also readjust the model to extend further?
I have tried readjusting scale limits but the plot of the model doesn't extend with it.