title: R bar plot with 3 variables
body: <p>I have a dataframe that has multiple variables, and I would like to know how can I plot them like the plotting option in <code>Excel</code>.</p>
  
  <p>Just a simple data example:</p>
  
  <pre><code>  &gt; V1   V2  V3
      1    A    0
      1    A    0
      1    B    1
      1    B    0
      1    A    1
      2    A    0
      2    B    0
      2    A    0
      2    A    0
      2    A    0
  </code></pre>
  
  <p>What I'd like to have, is an <code>x</code> axis with <code>V1</code>, a <code>y</code> axis with all the count of <code>V3</code> when <code>V2</code> is <code>A</code> or <code>B</code>.</p>
  
  <p>Can somebody please share some thoughts on how to do this? The <code>barplot</code> function doesn't seem capable because it can only work with <code>2*2</code> table?</p>
  
  <p>Thank you.</p>
  
  <p>Edit:</p>
  
  <p>This plot is not generated by the data given though:
  <a href="https://i.stack.imgur.com/HK3GV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HK3GV.jpg" alt="enter image description here"></a></p>
  
  <p>Consider the <code>y</code> axis as the percentage of <code>V3</code>, the <code>x</code> axis of <code>V1</code> and for each level of <code>V2</code> a bar chart is created.</p>