@@ -810,34 +810,6 @@ size0 <- function(x) {
810
810
}
811
811
}
812
812
813
- fallback_palette <- function (scale ) {
814
- aes <- scale $ aesthetics [1 ]
815
- discrete <- scale $ is_discrete()
816
- if (discrete ) {
817
- pal <- switch (
818
- aes ,
819
- colour = , fill = pal_hue(),
820
- alpha = function (n ) seq(0.1 , 1 , length.out = n ),
821
- linewidth = function (n ) seq(2 , 6 , length.out = n ),
822
- linetype = pal_linetype(),
823
- shape = pal_shape(),
824
- size = function (n ) sqrt(seq(4 , 36 , length.out = n )),
825
- ggplot_global $ theme_default [[paste0(" palette." , aes , " .discrete" )]]
826
- )
827
- return (pal )
828
- }
829
- switch (
830
- aes ,
831
- colour = , fill = pal_seq_gradient(" #132B43" , " #56B1F7" ),
832
- alpha = pal_rescale(c(0.1 , 1 )),
833
- linewidth = pal_rescale(c(1 , 6 )),
834
- linetype = pal_binned(pal_linetype()),
835
- shape = pal_binned(pal_shape()),
836
- size = pal_area(),
837
- ggplot_global $ theme_default [[paste0(" palette." , aes , " .continuous" )]]
838
- )
839
- }
840
-
841
813
warn_dots_used <- function (env = caller_env(), call = caller_env()) {
842
814
check_dots_used(
843
815
env = env , call = call ,
0 commit comments