View source: R/Color_Palettes.R
PalettePlot | R Documentation |
Plots given color vector/palette in viewer to evaluate palette before plotting on data.
PalettePlot(pal = NULL, label_color_num = NULL)
pal |
a vector of colors (either named colors of hex codes). |
label_color_num |
logical, whether or not to numerically label the colors in output plot.
Default is TRUE is number of colors in |
Plot of all colors in supplied palette/vector
Adapted from colorway package build_palette
internals (License: GPL-3).
https://github.com/hypercompetent/colorway.
pal <- DiscretePalette_scCustomize(num_colors = 36, palette = "varibow")
PalettePlot(pal = pal)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.