Skip to content

Commit

Permalink
Merge pull request #42 from mccarthy-m-g/v0.2.1
Browse files Browse the repository at this point in the history
V0.2.1
  • Loading branch information
mccarthy-m-g authored Jul 13, 2024
2 parents 86472bb + 936294b commit 3ccdc51
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.2.0
Date: 2024-02-05 00:58:20 UTC
SHA: 1c4ebfb29c81b971a45000ce86eb9bbbcd23326c
Version: 0.2.1
Date: 2024-07-13 22:50:31 UTC
SHA: a02c67c46903e389769991a8b8d11eabd0b2ec3c
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: palettes
Title: Methods for Colour Vectors and Colour Palettes
Version: 0.2.0.9000
Version: 0.2.1
Authors@R:
person(given = "Michael",
family = "McCarthy",
Expand Down Expand Up @@ -36,7 +36,7 @@ Suggests:
knitr (>= 1.22),
rmarkdown (>= 2.20),
colorspace,
gt,
gt (>= 0.9.0),
biscale,
sf,
patchwork,
Expand Down
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# palettes (development version)
# palettes 0.2.1

This is a small patch release that applies some internal fixes for the `scale_()` functions, due to a breaking change in ggplot2 v3.5.0 that deprecated the `scale_name` argument in `ggplot2::continuous_scale()`, `ggplot2::discrete_scale()` and `ggplot2::binned_scale()`. The "gt" vignette has also been updated to reflect changes to the `gt::data_color()` function in gt v0.9.0.

# palettes 0.2.0

Expand Down
12 changes: 6 additions & 6 deletions revdep/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,30 @@
|collate |en_CA.UTF-8 |
|ctype |en_CA.UTF-8 |
|tz |America/Vancouver |
|date |2024-02-04 |
|date |2024-07-13 |
|rstudio |2021.09.2+382 Ghost Orchid (desktop) |
|pandoc |2.14.0.3 @ /Applications/RStudio.app/Contents/MacOS/pandoc/ (via rmarkdown) |

# Dependencies

|package |old |new |Δ |
|:------------|:-----|:----------|:--|
|palettes |0.1.1 |0.1.1.9000 |* |
|palettes |0.2.0 |0.2.0.9000 |* |
|cli |3.6.2 |3.6.2 | |
|colorspace |2.1-0 |2.1-0 | |
|fansi |1.0.6 |1.0.6 | |
|farver |2.1.1 |2.1.1 | |
|ggplot2 |3.4.4 |3.4.4 | |
|ggplot2 |3.5.1 |3.5.1 | |
|glue |1.6.2 |1.6.2 | |
|gtable |0.3.4 |0.3.4 | |
|gtable |0.3.5 |0.3.5 | |
|isoband |0.2.7 |0.2.7 | |
|labeling |0.4.3 |0.4.3 | |
|lifecycle |1.0.4 |1.0.4 | |
|magrittr |2.0.3 |2.0.3 | |
|munsell |0.5.0 |0.5.0 | |
|munsell |0.5.1 |0.5.1 | |
|pillar |1.9.0 |1.9.0 | |
|pkgconfig |2.0.3 |2.0.3 | |
|prismatic |1.1.1 |1.1.1 | |
|prismatic |1.1.2 |1.1.2 | |
|purrr |1.0.2 |1.0.2 | |
|R6 |2.5.1 |2.5.1 | |
|RColorBrewer |1.1-3 |1.1-3 | |
Expand Down
4 changes: 2 additions & 2 deletions vignettes/gt.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Here we pass the character vector directly to the `colors` argument.
gt_tbl %>%
data_color(
columns = Temp,
colors = character_vector
palette = character_vector
)
```

Expand All @@ -102,7 +102,7 @@ But this works equally well with the colour mapping functions from palettes.
gt_tbl %>%
data_color(
columns = Temp,
colors = pal_numeric(colour_vector, domain = NULL)
fn = pal_numeric(colour_vector, domain = NULL)
)
```

Expand Down

0 comments on commit 3ccdc51

Please sign in to comment.