title: Using database column names as axis names for r plot
body: <p>I am extracting data from a database using RMySQL and then using this data to plot a graph.</p>
  
  <p>The code I currently have is as follows:</p>
  
  <pre><code>con &lt;- dbConnect(dbDriver('MySQL'), user = 'root', password = 'root', dbname='dbname')
  df &lt;- data.frame(dbGetQuery(con, paste('select * from test')))
  plot(df$ID, df$UID, xlab='test1', ylab='test2', type='l')
  </code></pre>
  
  <p>This works absolutely fine but my question is how can I use the DB column name as the axis labels instead of hard coding the labels in? </p>