diff --git a/R/geom-jitter.r b/R/geom-jitter.r index 0ebaa166bf..3864090fdb 100644 --- a/R/geom-jitter.r +++ b/R/geom-jitter.r @@ -39,7 +39,7 @@ geom_jitter <- function(mapping = NULL, data = NULL, inherit.aes = TRUE) { if (!missing(width) || !missing(height)) { if (!missing(position)) { - stop("Specify either `position` or `width`/`height`", call. = FALSE) + stop("You must specify either `position` or `width`/`height`.", call. = FALSE) } position <- position_jitter(width = width, height = height) diff --git a/R/geom-label.R b/R/geom-label.R index 921f4784ac..18384f8a21 100644 --- a/R/geom-label.R +++ b/R/geom-label.R @@ -17,7 +17,7 @@ geom_label <- function(mapping = NULL, data = NULL, inherit.aes = TRUE) { if (!missing(nudge_x) || !missing(nudge_y)) { if (!missing(position)) { - stop("Specify either `position` or `nudge_x`/`nudge_y`", call. = FALSE) + stop("You must specify either `position` or `nudge_x`/`nudge_y`.", call. = FALSE) } position <- position_nudge(nudge_x, nudge_y) diff --git a/R/geom-text.r b/R/geom-text.r index d86fee04a6..3c5b087d54 100644 --- a/R/geom-text.r +++ b/R/geom-text.r @@ -136,7 +136,7 @@ geom_text <- function(mapping = NULL, data = NULL, { if (!missing(nudge_x) || !missing(nudge_y)) { if (!missing(position)) { - stop("Specify either `position` or `nudge_x`/`nudge_y`", call. = FALSE) + stop("You must specify either `position` or `nudge_x`/`nudge_y`.", call. = FALSE) } position <- position_nudge(nudge_x, nudge_y) diff --git a/R/sf.R b/R/sf.R index f47808a316..8cc629b8f6 100644 --- a/R/sf.R +++ b/R/sf.R @@ -347,7 +347,7 @@ geom_sf_text <- function(mapping = aes(), data = NULL, if (!missing(nudge_x) || !missing(nudge_y)) { if (!missing(position)) { - stop("Specify either `position` or `nudge_x`/`nudge_y`", call. = FALSE) + stop("You must specify either `position` or `nudge_x`/`nudge_y`.", call. = FALSE) } position <- position_nudge(nudge_x, nudge_y)