I want to use barplot() to plot a time series xts object. However, the date format shown up in x axis is in numeric values instead of date format. How can I change the numeric values to date format like “2012-06-12”? Here is an example code:
x<-rnorm(100);
y <- xts(x, Sys.Date()+1:100);
barplot(y);
The generic solution is to use the
names.argargument, but as I said in my comment, I can’t reproduce your problem with the code you provided.