We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af6f4e8 commit 78be71dCopy full SHA for 78be71d
R/aes-evaluation.R
@@ -350,7 +350,10 @@ strip_stage <- function(expr) {
350
make_labels <- function(mapping) {
351
default_label <- function(aesthetic, mapping) {
352
# e.g., geom_smooth(aes(colour = "loess")) or aes(y = NULL)
353
- if (is.null(mapping) || is.atomic(mapping)) {
+ if (is.null(mapping)) {
354
+ return(structure(aesthetic, fallback = TRUE))
355
+ }
356
+ if (is.atomic(mapping)) {
357
return(aesthetic)
358
}
359
mapping <- strip_stage(mapping)
0 commit comments