title: Disable grouping and re-ordering in ggplot
body: <p>From my data I want to draw points, one point per record, in the same way the records are in the table, without re-ordering them. For this example table:</p>
  
  <pre><code>dt &lt;- data.table(titles=factor(c('B','C','A','C')),
                   values=c(1,2,3,4) )
  </code></pre>
  
  <p>I want to have the following plot:
  <a href="https://i.stack.imgur.com/R4UZg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R4UZg.png" alt="sample plot"></a></p>
  
  <p>So far I have to use the following code to do this:</p>
  
  <pre><code>ggplot(data = dt, 
         aes(x=seq_len(nrow(dt)), y=values)) + 
    geom_point() +
    scale_x_discrete(labels=dt$titles) + xlab('titles')
  </code></pre>
  
  <p>But I really don't like it: 1) all that mess with <code>x=seq_len(nrow(...))</code> looks ugly, 2) I have to address <code>dt</code> explicitly in <code>scale_x_discrete</code>. What would be correct way to draw a plot like this?</p>