PalettePlot {scCustomize} | R Documentation |
Plot color palette in viewer
Description
Plots given color vector/palette in viewer to evaluate palette before plotting on data.
Usage
PalettePlot(pal = NULL, label_color_num = NULL)
Arguments
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 |
Value
Plot of all colors in supplied palette/vector
References
Adapted from colorway package build_palette
internals (License: GPL-3).
https://github.com/hypercompetent/colorway.
Examples
pal <- DiscretePalette_scCustomize(num_colors = 36, palette = "varibow")
PalettePlot(pal = pal)
[Package scCustomize version 2.1.2 Index]