Skip to content

Commit dee8425

Browse files
committed
Improve ggplot() error message
Fixes #1436
1 parent aac173e commit dee8425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/plot.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ ggplot.default <- function(data = NULL, mapping = aes(), ...,
9090
ggplot.data.frame <- function(data, mapping = aes(), ...,
9191
environment = parent.frame()) {
9292
if (!missing(mapping) && !inherits(mapping, "uneval")) {
93-
stop("Mapping should be created with aes or aes_string")
93+
stop("Mapping should be created with `aes() or `aes_()`.", call. = FALSE)
9494
}
9595

9696
p <- structure(list(

0 commit comments

Comments
 (0)