title: Creating separate columns within barplot
body: <p>I have two columns in my data airlines and sentiment (which are coded as zero and one). I have created a bar plot with the code below but I would like the zero and ones to be separated into separate boxes. I have used &quot;dodge&quot; but I haven't been able to get it working.</p>
  <p>Thank you for your help in advance!</p>
  <pre><code>1 airline               sentiment 
  2 Virgin                     0
  3 America airways            1
  4 Jet Blue                   0
  5 Virgin                     1
  6 Virgin                     1
  7 America airways            0
  8 Jet Blue                   1
  9 Virgin Virgin               0
  10 America airways             0
  11 Jet Blue                    1
  12 Virgin                      1
  
  </code></pre>
  <p>The code below results in this plot:</p>
  <p><a href="https://i.stack.imgur.com/EBEL6.png" rel="nofollow noreferrer">enter image description here</a></p>
  <pre><code>ggplot(airline_sentiment, aes(x=airline, y = sentiment)) + geom_bar(stat = &quot;identity&quot;, aes(fill = sentiment))+
    ggtitle(&quot;&quot;) +
     xlab(&quot;Airline&quot;) + ylab(&quot;Frequency&quot;) + theme(legend.position = &quot;none&quot;)
  </code></pre>
  <p>When I use:</p>
  <pre><code>#using dodge
  ggplot(airline_sentiment, aes(x=airline, y = sentiment, fill = sentiment)) + geom_bar(stat = &quot;identity&quot;, position = &quot;dodge&quot;)
  
  #using facet wrap
  ggplot(airline_sentiment, aes(x=airline, y = sentiment, fill = sentiment)) + geom_bar(stat = &quot;identity&quot;) + facet_wrap(~sentiment)
  </code></pre>
  <p>My code doesn't split into columns like you have suggested rather splits like this <a href="https://i.stack.imgur.com/VToGH.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>Thank you again!</p>