Skip to content

Commit

Permalink
update scale_color/fill_tq() docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdancho84 committed Aug 19, 2024
1 parent a8b68af commit 8a6db21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions R/ggplot-scale_manual.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#' @seealso [theme_tq()]
#'
#' @param theme one of "light", "dark", or "green". This should match the `theme_tq()` that is used with it.
#' @param ... common discrete scale parameters: `name`, `breaks`, `labels`, `na.value`, `limits` and `guide`. See [discrete_scale()] for more details
#' @param ... common parameters for `scale_color_manual()` or `scale_fill_manual()`: `name`, `breaks`, `labels`, `na.value`, `limits` and `guide`.
#'
#' @examples
#' # Load libraries
Expand Down Expand Up @@ -57,7 +57,7 @@ scale_color_tq <- function(..., theme = "light") {
"green" = unname(palette_green() %>% rep(100))
)

scale_color_manual(values = pal)
scale_color_manual(values = pal, ...)
}

#' @rdname scale_manual
Expand All @@ -74,7 +74,7 @@ scale_fill_tq <- function(..., theme = "light") {
"green" = unname(palette_green()) %>% rep(100)
)

scale_fill_manual(values = pal)
scale_fill_manual(values = pal, ...)
}

#' tidyquant palettes for use with scales
Expand Down
2 changes: 1 addition & 1 deletion man/scale_manual.Rd

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

0 comments on commit 8a6db21

Please sign in to comment.