title: Change Axis Label - R scatterplot
body: <p>I am using the CAR library scatterplot function trying to do something similar to <a href="https://stackoverflow.com/questions/5182238/r-replace-x-axis-with-own-values">R: Replace X-axis with own values</a>.  However the result is badly formatted.  Does anyone know how to replace the x axis values when using scatterplot?  My code is below</p>
  
  <pre><code>library(car)
  dat = data.frame(x=1:10, y=1:10)
  scatterplot(y~x, data=dat, xlab="X axis", ylab="Y Axis", xaxt="n")
  axis(1, at=seq(1,10,2), labels=letters[1:5])
  </code></pre>
  
  <p>With the resulting image</p>
  
  <p><img src="https://i.stack.imgur.com/QkXDX.png" alt="Bad Scatter Plot"></p>