You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/articles/faq-axes.Rmd
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -473,7 +473,7 @@ ggplot(mpg, aes(drv)) +
473
473
```
474
474
475
475
However note that this removes the padding at the bottom of the bars as well as on top.
476
-
By default, ggplot2 The expands the scale by 5% on each side for continuous variables and by 0.6 units on each side for discrete variables.
476
+
By default, ggplot2 expands the scale by 5% on each side for continuous variables and by 0.6 units on each side for discrete variables.
477
477
To keep the default expansion on top while removing it at the bottom, you can use the following.
478
478
The `mult` argument in `expansion()` takes a multiplicative range expansion factors.
479
479
Given a vector of length 2, the lower limit is expanded by `mult[1]` (in this case 0) and the upper limit is expanded by `mult[2]` (in this case 0.05).
0 commit comments