Nothing
#' Get palette
#'
#' @param palette Character specifying wich palette to use; default is `NULL` to randomly pick a palette
#' @return Color palette
#' @export
#'
get_pal <- function(palette = NULL) {
if(is.null(palette)) {
n_pals <- length(wesanderson::wes_palettes)
wesanderson::wes_palettes[sample(x=1:n_pals,size=1)]
} else {
wesanderson::wes_palettes[palette]
}
}
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.