diff --git a/R/scale_color_flat.R b/R/scale_color_flat.R index f6df99704..9fb817e12 100644 --- a/R/scale_color_flat.R +++ b/R/scale_color_flat.R @@ -45,7 +45,6 @@ scale_color_flat <- function(palette = "contrast", } - # Aliases ----------------------------------------------------------------- @@ -94,13 +93,9 @@ scale_colour_flat_c <- scale_color_flat_c scale_colour_flat_d <- scale_color_flat_d - - - # Fill -------------------------------------------------------------------- - #' @rdname scale_color_flat #' @export scale_fill_flat <- function(palette = "contrast", @@ -134,6 +129,7 @@ scale_fill_flat_d <- function(palette = "contrast", ) } + #' @rdname scale_color_flat #' @export scale_fill_flat_c <- function(palette = "contrast", @@ -151,14 +147,9 @@ scale_fill_flat_c <- function(palette = "contrast", } - - - # Palette -------------------------------------------------------------------- - - # The palette based on flat design colors: https://www.materialui.co/flatuicolors flat_colors_list <- c( `red` = "#e74c3c", @@ -205,8 +196,6 @@ flat_colors <- function(...) { } - - flat_palettes <- list( `full` = flat_colors(), `ice` = flat_colors("purple", "deep purple", "blue", "light blue"), @@ -239,9 +228,6 @@ flat_palettes <- list( - - - #' Flat UI color palette #' #' The palette based on [Flat UI](https://materialui.co/flatuicolors). @@ -251,10 +237,10 @@ flat_palettes <- list( #' `"contrast"`, `"light"` (for dark themes), `"black_first"`, `full_original`, #' or `black_first_original`. #' @param reverse Boolean indicating whether the palette should be reversed. -#' @param ... Additional arguments to pass to [`colorRampPalette()`][colorRampPalette]. +#' @param ... Additional arguments to pass to [`grDevices::colorRampPalette()`]. #' #' @details This function is usually not called directly, but from within -#' [`scale_color_flat()`][scale_color_flat]. +#' [`scale_color_flat()`]. #' #' @export palette_flat <- function(palette = "contrast", reverse = FALSE, ...) { diff --git a/R/scale_color_pizza.R b/R/scale_color_pizza.R index ecc1224ed..cb8c2aa4a 100644 --- a/R/scale_color_pizza.R +++ b/R/scale_color_pizza.R @@ -194,7 +194,7 @@ pizza_palettes <- list( #' @param palette Pizza type. Can be "margherita" (default), "margherita_crust", #' "diavola" or "diavola_crust". #' @param reverse Boolean indicating whether the palette should be reversed. -#' @param ... Additional arguments to pass to [`colorRampPalette()`][colorRampPalette]. +#' @param ... Additional arguments to pass to [`grDevices::colorRampPalette()`]. #' #' @details This function is usually not called directly, but from within #' [`scale_color_pizza()`][scale_color_pizza]. diff --git a/R/scale_color_see.R b/R/scale_color_see.R index aa1382247..b85965309 100644 --- a/R/scale_color_see.R +++ b/R/scale_color_see.R @@ -240,8 +240,6 @@ palette_see <- function(palette = "contrast", reverse = FALSE, ...) { - - # helper ----------------------- .retrieve_palette <- function(palette, palette_list, reverse = FALSE, ...) { diff --git a/R/scale_color_tol.R b/R/scale_color_tol.R index 68af0c45e..690395904 100644 --- a/R/scale_color_tol.R +++ b/R/scale_color_tol.R @@ -189,7 +189,7 @@ tol_colors <- function(..., palette = "bright") { #' @param order A vector of numbers indicating the order of colors to use #' (default: `NULL` indicating to use all available colors in order). #' @param ... For sequential palettes other than `rainbow_discrete`, additional -#' arguments to pass to [`colorRampPalette()`][colorRampPalette]. +#' arguments to pass to [`grDevices::colorRampPalette()`]. #' #' @references #' Tol, P. (2021). Colour schemes (SRON/EPS Technical Note No. 09-002; Version 3.2). diff --git a/man/palette_bluebrown.Rd b/man/palette_bluebrown.Rd index 1711d7507..a40fb42eb 100644 --- a/man/palette_bluebrown.Rd +++ b/man/palette_bluebrown.Rd @@ -14,7 +14,7 @@ or \code{black_first_original}.} \item{reverse}{Boolean indicating whether the palette should be reversed.} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ The palette based on blue-brown colors. diff --git a/man/palette_colorhex.Rd b/man/palette_colorhex.Rd index d140b42b9..932b8f912 100644 --- a/man/palette_colorhex.Rd +++ b/man/palette_colorhex.Rd @@ -13,7 +13,7 @@ For example, \code{1014416} for the \item{reverse}{Boolean indicating whether the palette should be reversed.} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ This function downloads a requested color palette from \url{https://www.color-hex.com/}. diff --git a/man/palette_flat.Rd b/man/palette_flat.Rd index a1824c259..c6de6d82f 100644 --- a/man/palette_flat.Rd +++ b/man/palette_flat.Rd @@ -14,7 +14,7 @@ or \code{black_first_original}.} \item{reverse}{Boolean indicating whether the palette should be reversed.} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ The palette based on \href{https://materialui.co/flatuicolors}{Flat UI}. diff --git a/man/palette_material.Rd b/man/palette_material.Rd index a09d728a4..40b7e0728 100644 --- a/man/palette_material.Rd +++ b/man/palette_material.Rd @@ -14,7 +14,7 @@ or \code{black_first_original}.} \item{reverse}{Boolean indicating whether the palette should be reversed.} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ The palette based on \href{https://materialui.co/}{material design colors}. diff --git a/man/palette_metro.Rd b/man/palette_metro.Rd index d7173bf0e..288ad6515 100644 --- a/man/palette_metro.Rd +++ b/man/palette_metro.Rd @@ -14,7 +14,7 @@ or \code{black_first_original}.} \item{reverse}{Boolean indicating whether the palette should be reversed.} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ The palette based on \href{https://materialui.co/metrocolors}{Metro colors}. diff --git a/man/palette_okabeito.Rd b/man/palette_okabeito.Rd index 642b0e6f7..69b1f0b4e 100644 --- a/man/palette_okabeito.Rd +++ b/man/palette_okabeito.Rd @@ -20,7 +20,7 @@ or \code{black_first_original}.} \item{order}{A vector of numbers from 1 to 9 indicating the order of colors to use (default: \code{1:9})} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ The palette based on Okabe and Ito (2008). diff --git a/man/palette_pizza.Rd b/man/palette_pizza.Rd index 164e40c09..0e4d7a2bb 100644 --- a/man/palette_pizza.Rd +++ b/man/palette_pizza.Rd @@ -12,7 +12,7 @@ palette_pizza(palette = "margherita", reverse = FALSE, ...) \item{reverse}{Boolean indicating whether the palette should be reversed.} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ The palette based on authentic neapolitan pizzas. diff --git a/man/palette_see.Rd b/man/palette_see.Rd index 48937075e..831aeb9b1 100644 --- a/man/palette_see.Rd +++ b/man/palette_see.Rd @@ -14,7 +14,7 @@ or \code{black_first_original}.} \item{reverse}{Boolean indicating whether the palette should be reversed.} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ See design color palette diff --git a/man/palette_social.Rd b/man/palette_social.Rd index 45d62cfee..04cf945fe 100644 --- a/man/palette_social.Rd +++ b/man/palette_social.Rd @@ -14,7 +14,7 @@ or \code{black_first_original}.} \item{reverse}{Boolean indicating whether the palette should be reversed.} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ The palette based \href{https://materialui.co/socialcolors}{Social colors}. diff --git a/man/palette_tol_discrete.Rd b/man/palette_tol_discrete.Rd index d5b9b55b9..9d4eada6e 100644 --- a/man/palette_tol_discrete.Rd +++ b/man/palette_tol_discrete.Rd @@ -22,7 +22,7 @@ palette_tol_discrete(palette = "bright", reverse = FALSE, order = NULL, ...) (default: \code{NULL} indicating to use all available colors in order).} \item{...}{For sequential palettes other than \code{rainbow_discrete}, additional -arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ The palettes proposed by Tol (2021). diff --git a/man/scale_color_bluebrown.Rd b/man/scale_color_bluebrown.Rd index e84531020..9e1a7598a 100644 --- a/man/scale_color_bluebrown.Rd +++ b/man/scale_color_bluebrown.Rd @@ -97,7 +97,7 @@ or \code{black_first_original}.} \item{aesthetics}{A vector of names of the aesthetics that this scale should be applied to (e.g., \code{c('color', 'fill')}).} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ A blue-brown color palette. Use \code{scale_color_bluebrown_d()} for diff --git a/man/scale_color_colorhex.Rd b/man/scale_color_colorhex.Rd index 261048c82..b810a24dd 100644 --- a/man/scale_color_colorhex.Rd +++ b/man/scale_color_colorhex.Rd @@ -96,7 +96,7 @@ For example, \code{1014416} for the \item{aesthetics}{A vector of names of the aesthetics that this scale should be applied to (e.g., \code{c('color', 'fill')}).} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ This function creates color scales based on palettes from \url{https://www.color-hex.com/}. diff --git a/man/scale_color_material.Rd b/man/scale_color_material.Rd index 1832b6a17..0a72f2d91 100644 --- a/man/scale_color_material.Rd +++ b/man/scale_color_material.Rd @@ -97,7 +97,7 @@ or \code{black_first_original}.} \item{aesthetics}{A vector of names of the aesthetics that this scale should be applied to (e.g., \code{c('color', 'fill')}).} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ The palette based on \href{https://materialui.co/}{material design colors}. Use \code{scale_color_material_d()} for diff --git a/man/scale_color_metro.Rd b/man/scale_color_metro.Rd index f53a21eb9..f6dd6724e 100644 --- a/man/scale_color_metro.Rd +++ b/man/scale_color_metro.Rd @@ -97,7 +97,7 @@ or \code{black_first_original}.} \item{aesthetics}{A vector of names of the aesthetics that this scale should be applied to (e.g., \code{c('color', 'fill')}).} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ The palette based on Metro \href{https://materialui.co/metrocolors}{Metro colors}. diff --git a/man/scale_color_okabeito.Rd b/man/scale_color_okabeito.Rd index e5ed09c2a..913c7fd3c 100644 --- a/man/scale_color_okabeito.Rd +++ b/man/scale_color_okabeito.Rd @@ -71,7 +71,7 @@ or \code{black_first_original}.} \item{aesthetics}{A vector of names of the aesthetics that this scale should be applied to (e.g., \code{c('color', 'fill')}).} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ The Okabe-Ito color palette was proposed by Okabe and Ito (2008) as a diff --git a/man/scale_color_pizza.Rd b/man/scale_color_pizza.Rd index aff451f23..671948fd3 100644 --- a/man/scale_color_pizza.Rd +++ b/man/scale_color_pizza.Rd @@ -95,7 +95,7 @@ scale_fill_pizza_c( \item{aesthetics}{A vector of names of the aesthetics that this scale should be applied to (e.g., \code{c('color', 'fill')}).} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ The palette based on authentic neapolitan pizzas. diff --git a/man/scale_color_see.Rd b/man/scale_color_see.Rd index d8aa82fa5..e3372fd7f 100644 --- a/man/scale_color_see.Rd +++ b/man/scale_color_see.Rd @@ -97,7 +97,7 @@ or \code{black_first_original}.} \item{aesthetics}{A vector of names of the aesthetics that this scale should be applied to (e.g., \code{c('color', 'fill')}).} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ The See color palette. Use \code{scale_color_see_d()} for \emph{discrete} diff --git a/man/scale_color_social.Rd b/man/scale_color_social.Rd index e013e7a86..426d57125 100644 --- a/man/scale_color_social.Rd +++ b/man/scale_color_social.Rd @@ -97,7 +97,7 @@ or \code{black_first_original}.} \item{aesthetics}{A vector of names of the aesthetics that this scale should be applied to (e.g., \code{c('color', 'fill')}).} -\item{...}{Additional arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +\item{...}{Additional arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ The palette based \href{https://materialui.co/socialcolors}{Social colors}. diff --git a/man/scale_color_tol_discrete.Rd b/man/scale_color_tol_discrete.Rd index 9a9291d8f..64ce0c09f 100644 --- a/man/scale_color_tol_discrete.Rd +++ b/man/scale_color_tol_discrete.Rd @@ -49,7 +49,7 @@ scale_colour_tol_discrete( should be applied to (e.g., \code{c('color', 'fill')}).} \item{...}{For sequential palettes other than \code{rainbow_discrete}, additional -arguments to pass to \code{\link[=colorRampPalette]{colorRampPalette()}}.} +arguments to pass to \code{\link[grDevices:colorRamp]{grDevices::colorRampPalette()}}.} } \description{ Tol (2021) presents a series of palettes built with mathematical principles