@@ -13,16 +13,22 @@ ggplot_global$theme_current <- list()
13
13
ggplot_global $ element_tree <- list ()
14
14
15
15
# List of all aesthetics known to ggplot
16
- ggplot_global $ all_aesthetics <- c(
16
+ # (In the future, .all_aesthetics should be removed in favor
17
+ # of direct assignment to ggplot_global$all_aesthetics, see below.)
18
+ .all_aesthetics <- c(
17
19
" adj" , " alpha" , " angle" , " bg" , " cex" , " col" , " color" ,
18
20
" colour" , " fg" , " fill" , " group" , " hjust" , " label" , " linetype" , " lower" ,
19
21
" lty" , " lwd" , " max" , " middle" , " min" , " pch" , " radius" , " sample" , " shape" ,
20
22
" size" , " srt" , " upper" , " vjust" , " weight" , " width" , " x" , " xend" , " xmax" ,
21
23
" xmin" , " xintercept" , " y" , " yend" , " ymax" , " ymin" , " yintercept" , " z"
22
24
)
23
25
26
+ ggplot_global $ all_aesthetics <- .all_aesthetics
27
+
24
28
# Aesthetic aliases
25
- ggplot_global $ base_to_ggplot <- c(
29
+ # (In the future, .base_to_ggplot should be removed in favor
30
+ # of direct assignment to ggplot_global$base_to_ggplot, see below.)
31
+ .base_to_ggplot <- c(
26
32
" col" = " colour" ,
27
33
" color" = " colour" ,
28
34
" pch" = " shape" ,
@@ -36,3 +42,5 @@ ggplot_global$base_to_ggplot <- c(
36
42
" min" = " ymin" ,
37
43
" max" = " ymax"
38
44
)
45
+
46
+ ggplot_global $ base_to_ggplot <- .base_to_ggplot
0 commit comments