Skip to content

Commit 479d8c0

Browse files
committed
Use pal_brewer() instead of brewer.pal()
1 parent 2e8665b commit 479d8c0

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

DESCRIPTION

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ Suggests:
6565
quantreg,
6666
quarto,
6767
ragg (>= 1.2.6),
68-
RColorBrewer,
6968
roxygen2,
7069
rpart,
7170
sf (>= 0.7-3),

icons/icons.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ write_icon("scale_colour_brewer", {
488488
rectGrob(
489489
c(0.1, 0.3, 0.5, 0.7, 0.9),
490490
width = 0.21,
491-
gp = gpar(fill = RColorBrewer::brewer.pal(5, "PuOr"), col = NA)
491+
gp = gpar(fill = scales::pal_brewer(palette = "PuOr")(5), col = NA)
492492
)
493493
})
494494

0 commit comments

Comments
 (0)