Skip to content

Commit

Permalink
scale_name argument of ggplot2::discrete_scale is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivia-Box-Power committed Nov 22, 2024
1 parent 3d6f60d commit 53933a7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion R/scale_colour_discrete_af.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ scale_colour_discrete_af <- function(palette = "main",
palette_type <- match.arg(palette_type)

ggplot2::discrete_scale("colour",
paste0(palette_type, "_", palette),
palette = af_palette(palette, reverse, palette_type = palette_type),
...
)
Expand Down
1 change: 0 additions & 1 deletion R/scale_fill_discrete_af.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ scale_fill_discrete_af <- function(palette = "main",
palette_type <- match.arg(palette_type)

ggplot2::discrete_scale("fill",
paste0(palette_type, "_", palette),
palette = af_palette(palette, reverse, palette_type = palette_type),
...
)
Expand Down

0 comments on commit 53933a7

Please sign in to comment.