I need to assign certain names to the x-values of a percentage growth time series plot. I know how to remove the values but I want the names "08-09 q1","08-08 q2","08-09 q3","08-09 q4","09-10 q1",...,"14-15 q2" to replace them so that each value on the x-axis is directly below the point plotted. How can I do this?
plot.ts(percentagegrowth1,xaxt="n",xlab="Quarter",ylab="Percentage growth",main="Year-over-Year Quarterly Percentage Growth")
for(i in 1:length(percentagegrowth1r))
{
text(x=i,y=percentagegrowth1r[i],labels=percentagegrowth1r[i],cex=0.5,font=2,pos=1)
text(x=i,y=percentagegrowth1r[i],labels=percentagegrowth1r[i],cex=0.5,font=2,pos=3)
}
lines(percentf1,col="red")
points(percentagegrowth1r,col="blue")
dates<-c(1.1,1.2,1.3,1.4,2.1,2.2,2.3,2.4,3.1,3.2,3.3,3.4,4.1,4.2,4.3,4.4,5.1,5.2,5.3,5.4,6.1,6.2,6.3,6.4,7.1,7.2)
for(i in 1:length(dates)) {
axis(1,at=i,labels=dates[i])
}
legend("topright",c("x-values=Year comparison.Quarter e.g 1.1=08-09 q1","Red=Forecasted data"))
percentagegrowth1r=
-37.1 9.6 -8.9 71.8 111.8 106.4 65.4 68.8 53.0 40.6 22.5 36.9 30.8 14.5 23.6 38.3 16.1 29.2 39.0 4.0 -6.3 46.0 32.7 32.8 72.4 13.5
percentf1= NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 32.67955 32.78714 72.44055 13.48962
This is an image of the graph I have plotted:

I want the value 1.1 replaced with "08-09 q1", 1.2 replaced with "08-08 q2" , 1.3 replaced with "08-08 q3", 1.4 replaced with "08-09 q4", 2.1 replaced with "09-10 q1", ... , 7.1 replaced with "14-15 q1" and 7.2 replaced with "14-15 q2"
