I am using the loess method of stat_smooth of ggplot2 to fit my data. The X increment of my original data is 1 year. However, the fitted line by loess of stat_smooth gives me X' increment of 0.522. I am wondering is there a way to adjust the increments of the fitted line returned from stat_smooth? Basically, to keep the X increment as its original length. Thanks so much!
print(ggplot(orig_data, aes(Year,Value, col=County)) + geom_point(na.rm = T) +
stat_smooth(alpha=.2,size=1,se=F,method="loess",formula = y~x, span = 0.5,
aes(outfit=fit<<-..y..,outx=fit_x<<-..x..)) + theme(legend.position="none"))