I am plotting a time series data in R. In the X-axis I should get the year as 2014, 2015, 2016 where as I'm getting 2014.0, 2014.5, 2015.0, 2015.5, 2016.0 and 2016.5 which is very annoying. How can I get rid of this?
Below given is the code I have used.
inflow<-ts(inflow,start = c(2014,1),frequency = 12)
plot(inflow, xlab="Year", ylab="Inflow Count")
Can anyone please help me how should I get rid of the decimal part in the year field in X-axis. I am attaching the image (R Plot) with my resulting output as well.