Skip to content

Commit 7d5081e

Browse files
committed
Put nudge_y into aes call
As discussed in #6355.
1 parent 876cce6 commit 7d5081e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/position-nudge.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#' # For each text individually
3232
#' ggplot(df, aes(x, y)) +
3333
#' geom_point() +
34-
#' geom_text(aes(label = y), nudge_y = c(-0.1, 0.1, -0.1, 0.1))
34+
#' geom_text(aes(label = y, nudge_y = c(-0.1, 0.1, -0.1, 0.1)))
3535
position_nudge <- function(x = NULL, y = NULL) {
3636
ggproto(NULL, PositionNudge,
3737
x = x,

0 commit comments

Comments
 (0)