title: Scatterplot with ugly margins when using log scale
body: <p>I have a somewhat "weird" two-dimensional distribution (not normal with some uniform values, but it kinda looks like this.. this is just a minimal reproducible example), and want to log-transform the values and plot them. </p>
  
  <pre><code>library("ggplot2")
  library("scales")
  df &lt;- data.frame(x = c(rep(0,200),rnorm(800, 4.8)), y = c(rnorm(800, 3.2),rep(0,200)))
  </code></pre>
  
  <p>Without the log transformation, the scatterplot (incl. rug plot which I need) works (quite) well, apart from a marginally narrower rug plot on the x axis:</p>
  
  <pre><code>p &lt;- ggplot(df, aes(x, y)) + geom_point() +  geom_rug(alpha = I(0.5)) + theme_minimal()
  p
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/qfUDX.png" alt="enter image description here"></p>
  
  <p>When plotting the same with a log10-transform though, the points at the margin (at x = 0 and y = 0, respectively) are plotted outside the rug plot or just on the axis (with other data, and only one half side of a point is visible).</p>
  
  <pre><code>p + scale_x_log10() + scale_y_log10()
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/hMgzj.png" alt="enter image description here"></p>
  
  <p>How can I "rescale" the axes so that all the points are contained fully within the grid and the rug plots are unaffected, as in the first example? </p>