I'm using the library
R to plot fanchart and predictions through the vector of error correction model. I have used this code:
b<-ts(KtF,start=1921,end=2009,frequency=1) vecmfemales <- ca.jo(b,type="trace",spec="transitory") vecm.level <- vec2var(vecmfemales, r = 3) vecm.females <- predict(vecm.level,n.head=50,start=1921,frequency=1) plot(vecm.females) fanchart(vecm.females)
My graph comes out on the abcissa with and index of number which start by 0 and ends up with 100. However on my graphs I need years calendars from 1921 to 2009. Furthermore, I want to get also forecasting years up to 2059. I try to read the package from Pfaff(2013) but he presents only the abscissa as an index not as a calendar years. Please somebody can help me to improve my codes in order to get only calendar years? These codes above are my codes.