#' @export
#' @rdname gg_palette
palette2vec <- function(palette) {
if (is.data.frame(palette))
palette <- setNames(palette$colors, palette$labels)
return(palette)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.