title: How to specify the actual x axis values to plot as x axis ticks in R
body: <p>I am creating a plot in R and I dont like the x axis values being plotted by R.</p>
  
  <p>For example:</p>
  
  <pre><code>x &lt;- seq(10,200,10)
  y &lt;- runif(x)
  
  plot(x,y)
  </code></pre>
  
  <p>This plots a graph with the following values on the X axis:</p>
  
  <p><code>50, 100, 150, 200</code></p>
  
  <p>However, I want to plot the 20 values <code>10,20, 30 ... 200</code> stored in variable x, as the X axis values. I have scoured through countless blogs and the terse manual - after hours of searching, the closest I've come to finding anything useful is the following (summarized) instructions:</p>
  
  <ol>
  <li>call <code>plot()</code> or <code>par()</code>, specifying argument <code>xaxt='n'</code></li>
  <li>call <code>axis()</code> e.g. <code>axis(side = 1, at = seq(0, 10, by = 0.1), labels = FALSE, tcl = -0.2)</code></li>
  </ol>
  
  <p>I tried it and the resulting plot had no x axis values at all. Is it possible that someone out there knows how to do this? I can't believe that no one has ever tried to do this before.</p>