@@ -50,13 +50,13 @@ excel_new_pal <- function(theme = "Office Theme") {
5050# ' @export
5151# ' @example inst/examples/ex-theme_excel.R
5252scale_fill_excel <- function (... ) {
53- discrete_scale(" fill" , " excel " , excel_pal(line = FALSE ), ... )
53+ discrete_scale(" fill" , palette = excel_pal(line = FALSE ), ... )
5454}
5555
5656# ' @export
5757# ' @rdname scale_excel
5858scale_colour_excel <- function (... ) {
59- discrete_scale(" colour" , " excel " , excel_pal(line = TRUE ), ... )
59+ discrete_scale(" colour" , palette = excel_pal(line = TRUE ), ... )
6060}
6161
6262# ' @export
@@ -74,7 +74,7 @@ scale_color_excel <- scale_colour_excel
7474# ' @example inst/examples/ex-theme_excel_new.R
7575# ' @export
7676scale_colour_excel_new <- function (theme = " Office Theme" , ... ) {
77- discrete_scale(" colour" , " excel_new " , excel_new_pal(theme ), ... )
77+ discrete_scale(" colour" , palette = excel_new_pal(theme ), ... )
7878}
7979
8080# ' @export
@@ -84,7 +84,7 @@ scale_color_excel_new <- scale_colour_excel_new
8484# ' @export
8585# ' @rdname scale_excel_new
8686scale_fill_excel_new <- function (theme = " Office Theme" , ... ) {
87- discrete_scale(" fill" , " excel_new " , excel_new_pal(theme ), ... )
87+ discrete_scale(" fill" , palette = excel_new_pal(theme ), ... )
8888}
8989
9090# ' ggplot theme based on old Excel plots
0 commit comments