From 8a6db2191623c180f96bbeff058be4e3b690b12b Mon Sep 17 00:00:00 2001 From: Matt Dancho Date: Sun, 18 Aug 2024 22:16:27 -0400 Subject: [PATCH] update scale_color/fill_tq() docs --- R/ggplot-scale_manual.R | 6 +++--- man/scale_manual.Rd | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/R/ggplot-scale_manual.R b/R/ggplot-scale_manual.R index 811b7598..aed50ed7 100644 --- a/R/ggplot-scale_manual.R +++ b/R/ggplot-scale_manual.R @@ -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 @@ -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 @@ -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 diff --git a/man/scale_manual.Rd b/man/scale_manual.Rd index 7e82d1e9..3390715b 100644 --- a/man/scale_manual.Rd +++ b/man/scale_manual.Rd @@ -14,7 +14,7 @@ scale_colour_tq(..., theme = "light") scale_fill_tq(..., theme = "light") } \arguments{ -\item{...}{common discrete scale parameters: \code{name}, \code{breaks}, \code{labels}, \code{na.value}, \code{limits} and \code{guide}. See \code{\link[=discrete_scale]{discrete_scale()}} for more details} +\item{...}{common parameters for \code{scale_color_manual()} or \code{scale_fill_manual()}: \code{name}, \code{breaks}, \code{labels}, \code{na.value}, \code{limits} and \code{guide}.} \item{theme}{one of "light", "dark", or "green". This should match the \code{theme_tq()} that is used with it.} }