title: R ggplot2 - Simple plot- cannot specify log axis limits
body: <p>I'm trying to create a simple densityplot in R in ggplot2. Here's my code which works great.</p>
  
  <pre><code>d &lt;-  ggplot(result, aes(x=result$baseMeanA)) 
  d + geom_density(colour="darkgreen", size=2, fill="darkgreen") + 
  scale_x_log10() + scale_y_continuous(limits = c(0, 0.45))
  </code></pre>
  
  <p>The problem is that I cannot adjust the x-axis as I would like, into negative numbers. </p>
  
  <pre><code>scale_x_log10(limits= c(1, 10000))
  </code></pre>
  
  <p>works great, but </p>
  
  <pre><code>scale_x_log10(limits= c(-1, 10000))
  </code></pre>
  
  <p>does not work at all! It gives me this error:</p>
  
  <blockquote>
    <p>Error in if (zero_range(range)) { : missing value where TRUE/FALSE needed</p>
  </blockquote>
  
  <p>Please help! </p>