Single_Color_Palette {scCustomize} | R Documentation |
Single Color Palettes for Plotting
Description
Selects colors from modified versions of RColorBrewer single colors palettes
Usage
Single_Color_Palette(pal_color, num_colors = NULL, seed_use = 123)
Arguments
pal_color |
color palette to select (Options are: 'reds', 'blues', 'greens', 'purples', 'oranges', 'grays'). |
num_colors |
set number of colors (max = 7). |
seed_use |
set seed for reproducibility (default: 123). |
Value
A vector of colors
References
See RColorBrewer for more info on palettes https://CRAN.R-project.org/package=RColorBrewer
Examples
pal <- Single_Color_Palette(pal_color = "reds", num_colors = 7)
PalettePlot(pal= pal)
[Package scCustomize version 2.1.2 Index]