title: Setting the x-axis for R ggplot2
body: <p>How can I make the x-axis display the text in the "xaxisTitles" vector?</p>
  
  <p>Here is my code you can run:</p>
  
  <pre><code>require(ggplot2)
  require(reshape)
  
  xaxisTitles&lt;- cbind("a","b","c","d","e","f","g","h","j","k")
  df &lt;- data.frame(time = 1:10,
               a = cumsum(rnorm(10)),
               b = cumsum(rnorm(10)),
               c = cumsum(rnorm(10)))
  df &lt;- melt(df ,  id = 'time', variable_name = 'series')
  
  # plot on same grid, each series colored differently -- 
  # good if the series have same scale
  ggplot(df, aes(time,value)) + geom_line(aes(colour = series))+ theme(axis.text.x =     xaxisTitles)
  </code></pre>
  
  <p>I am getting the error:</p>
  
  <pre><code>Error in (function (el, elname)  : 
    Element axis.text.x must be a element_text object.
  </code></pre>