Skip to content

Commit

Permalink
deprecated ggplot arg
Browse files Browse the repository at this point in the history
  • Loading branch information
christophsax committed Oct 20, 2024
1 parent e399a0c commit 0bfa5d4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Encoding: UTF-8
URL: https://docs.ropensci.org/tsbox/, https://github.com/ropensci/tsbox
BugReports: https://github.com/ropensci/tsbox/issues
Roxygen: list(markdown = TRUE, roclets = c ("namespace", "rd", "srr::srr_stats_roclet"))
RoxygenNote: 7.2.3
RoxygenNote: 7.3.2
VignetteBuilder: knitr
Depends:
R (>= 2.10)
Expand Down
10 changes: 4 additions & 6 deletions R/ts_ggplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,8 @@ colors_tsbox <- function() {
scale_color_tsbox <- function(...) {
stopifnot(requireNamespace("ggplot2"))
ggplot2::discrete_scale(
"colour",
"ds",
scales::manual_pal(colors_tsbox()),
aesthetics = "colour",
palette = scales::manual_pal(colors_tsbox()),
...
)
}
Expand All @@ -188,9 +187,8 @@ scale_color_tsbox <- function(...) {
scale_fill_tsbox <- function(...) {
stopifnot(requireNamespace("ggplot2"))
ggplot2::discrete_scale(
"fill",
"ds",
scales::manual_pal(colors_tsbox()),
aesthetics = "fill",
palette = scales::manual_pal(colors_tsbox()),
...
)
}
9 changes: 9 additions & 0 deletions man/tsbox-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0bfa5d4

Please sign in to comment.