title: R plotting, date on x axis
body: <p>I know there are quite a few posts on plotting date values in axis. However, none seem to help. I basically want to have dates in the x-axis with the format "%d-%m-%Y". From the posts, this should be simply:</p>
  
  <pre><code>dat=read.table("TS.table",header=TRUE)
  d=as.Date(dat$Date,format="%Y-%m-%d")
  plot(d,1:length(d), xaxt="n", xlab="", ylab="")
  axis.Date(1, at = seq(d[1], d[length(d)], by="month"),
      labels= seq(d[1], d[length(d)], by="month"),
      format="%d-%m-%Y", las = 2)
  </code></pre>
  
  <p>However, i get: <img src="https://i.stack.imgur.com/U1p3w.png" alt="enter image description here"></p>
  
  <p>You can find the text file with the dates <a href="http://ubuntuone.com/11PXcukJ2R0vfhyVi4oxbG" rel="nofollow noreferrer">here</a>.</p>
  
  <p>Thanks.</p>