view_color_img <-
function(color.palette=c("custom1","npg","jama","jco","lancet","nejm"),alpha.col=1){
color.palette=get_hexcolors_for_palettes(color.palette,alpha.col=alpha.col)
show_col(color.palette,ncol=1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.