Nothing
#' Prism fill palettes
#'
#' A collection of fill palettes which mirror the
#' colour schemes available in GraphPad Prism.
#'
#' @inheritParams scale_fill_prism
#' @return Returns a function which takes a single integer as its only argument
#' and returns a character vector of hexadecimal colours.
#' See the examples below for usage.
#' @example inst/examples/ex-prism_fill_pal.R
#' @export
prism_fill_pal <- function(palette = "colors") {
allfills <- ggprism::ggprism_data$fill_palettes
if (!palette %in% names(allfills)) {
stop("The palette ", paste(palette), " does not exist.
See lengths(ggprism_data$fill_palettes) for valid palette names.")
}
values <- unname(allfills[[palette]])
f <- manual_pal(values)
attr(f, "max_n") <- length(values)
f
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.