title: Rotating x-axis labels and changing theme in ggplot2
body: <p>Is there a way to rotate the x-axis labels in a ggplot plot <em>AND</em> change the theme at the same time?</p>
  
  <p>If I do this, I can rotate the x-axis labels:</p>
  
  <pre><code>ToothGrowth$dose &lt;- as.factor(ToothGrowth$dose)
  ggplot(ToothGrowth, aes(x=dose, y=len)) + 
    geom_boxplot() +
    theme(axis.text.x = element_text(angle = 90, hjust = 1))
  </code></pre>
  
  <p>But if I add a theme, the rotations won't work:</p>
  
  <pre><code>ToothGrowth$dose &lt;- as.factor(ToothGrowth$dose)
  ggplot(ToothGrowth, aes(x=dose, y=len)) + 
    geom_boxplot() +
    theme(axis.text.x = element_text(angle = 90, hjust = 1)) +
    theme_minimal()
  </code></pre>
  
  <p>I tried adding the rotation within the <code>theme_minimal()</code> function, but that didn't work either.</p>
  
  <p>Thanks.</p>