Skip to content

Commit b4ae84b

Browse files
committed
Better default values for position nudge.
Fixes #1428
1 parent 4a85802 commit b4ae84b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# ggplot2 2.0.0.9000
22

3+
* `position = "nudge"` now works (although it doesn't do anything useful)
4+
(#1428).
5+
36
* You can once again set legend key and height width to unit arithmetic
47
objects (like `2 * unit(1, "cm")`) (#1437).
58

R/position-nudge.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ position_nudge <- function(x = 0, y = 0) {
3131
#' @usage NULL
3232
#' @export
3333
PositionNudge <- ggproto("PositionNudge", Position,
34-
x = NULL,
35-
y = NULL,
34+
x = 0,
35+
y = 0,
3636

3737
required_aes = c("x", "y"),
3838

0 commit comments

Comments
 (0)