We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scale_*
#' A muted, qualitative color palette #' #' @export #' @examples #' library(scales) #' scales::show_col(ipsum_pal()(9)) ipsum_pal <- function() { manual_pal(ipsum_palette) } #' Discrete color & fill scales based on the ipsum palette #' #' See [ipsum_pal()]. #' #' @md #' @inheritDotParams ggplot2::discrete_scale -expand -position #' @rdname scale_ipsum #' @export scale_colour_ipsum <- function(...) { if (is_3.5()) { discrete_scale(aesthetics = "colour", palette = ipsum_pal(), ...) } else { discrete_scale("colour", "ipsum", ipsum_pal(), ...) } } #' @export #' @rdname scale_ipsum scale_color_ipsum <- scale_colour_ipsum #' @export #' @rdname scale_ipsum scale_fill_ipsum <- function(...) { if (is_3.5()) { discrete_scale(aesthetics = "fill", palette = ipsum_pal(), ...) } else { discrete_scale("fill", "ipsum", ipsum_pal(), ...) } }
The text was updated successfully, but these errors were encountered:
ernestguevarra
No branches or pull requests
The text was updated successfully, but these errors were encountered: