title: Why does a boxplot in ggplot requires axis x and y?
body: <p>I have a variable ceroonce which is number of schools per county (integers) in 2011. When I plot it with <code>boxplot()</code> it only requires the ceroonce variable. A boxplot is then retrieved in which the y axis is the number of schools and the x axis is... the "factor" ceroonce. But in <code>ggplot</code>, when using <code>geom_boxplot</code>, it requires me to input both x and y axis, but I just want a boxplot of ceroonce. I have tried inputing ceroonce as both the x and y axis. But then a weird boxplot is retrieved in which the y axis is the number of schools but the x axis (which should be the factor variable) is also the number of schools? I am assuming this is very basic statistics, but I am just confused. I am attaching the images hoping this will clarify my question. </p>
  
  <p>This is the code I am using:</p>
  
  <pre><code>ggplot(escuelas, aes(x=ceroonce, y=ceroonce))+geom_boxplot()
  boxplot(escuelas$ceroonce)
  </code></pre>