title: Facet barplot by list in r using ggplot2
body: <p>Sorry about my limited knowledge, I am a bit of a beginner.</p>
  <p>I am trying to do a project for a class, where we have to create a data visualization, and I found a data frame I want to use (<code>starwars</code> in the <code>dplyr</code> package), but I am having a few issues. I want to facet the data based on items in a list. Basically I want to see what is the most common homeworld for characters in a film. This is the command I was trying to run.</p>
  <pre><code>library('dplyr')
  library('ggplot2')
  ggplot(starwars,aes(x=homeworld)) + geom_bar() + facet_wrap(~films)
  </code></pre>