title: Plot vector as barplot
body: <p>I have a vector:</p>
  
  <pre><code>x&lt;-c(1,1,1,1,2,3,5,1,1,1,2,4,9)
  y&lt;-length(x)
  </code></pre>
  
  <p>I would like to plot this such that each value is plotted separately instead of plotting counts.</p>
  
  <p>So basically each value should be represented separately in the plot where the length of the x axis is equal to <code>y</code> and each value is plotted on the y axis.</p>
  
  <p>How can this be done using qplot?</p>
  
  <p>for a matrix:</p>
  
  <pre><code>a&lt;-matrix(NA, ncol=3, nrow=100)
  
  a[,1]&lt;-1:100
  a[,2]&lt;-rnorm(100)
  a[,3]&lt;-rnorm(100)
  
  a&lt;-melt(as.data.frame(a),id.vars="V1")
  </code></pre>
  
  <p>ggplot(a,aes(seq_along(a),a))+geom_bar(stat="identity")+facet_wrap(V1)</p>