Single_Color_Palette: Single Color Palettes for Plotting

View source: R/Color_Palettes.R

Single_Color_PaletteR 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)


samuel-marsh/scCustomize documentation built on Dec. 20, 2024, 7:41 a.m.