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 4abac61 commit 607089cCopy full SHA for 607089c
R/geom-defaults.r
@@ -16,7 +16,7 @@
16
update_geom_defaults <- function(geom, new) {
17
g <- check_subclass(geom, "Geom", env = parent.frame())
18
old <- g$default_aes
19
- g$default_aes[] <- defaults(rename_aes(new), old)[names(g$default_aes)]
+ g$default_aes[] <- defaults(rename_aes(new), old)[names(old)]
20
invisible()
21
}
22
@@ -25,6 +25,6 @@ update_geom_defaults <- function(geom, new) {
25
update_stat_defaults <- function(stat, new) {
26
g <- check_subclass(stat, "Stat", env = parent.frame())
27
28
29
30
0 commit comments