colors_for_gradient: Generate a vector of colors for a gradient

View source: R/utils.R

colors_for_gradientR Documentation

Generate a vector of colors for a gradient

Description

This function generates a vector of colors for a gradient, given a specified palette name.

Usage

colors_for_gradient(
  palette = c("Je1", "Seurat_Like", "Ju1", "De1", "De2", "De3", "De4", "De5", "De6",
    "De7", "De8", "De9", "Magma", "viridis", "magma2", "plasma")
)

Arguments

palette

A character vector specifying the palettes to use. One of: "Je1", "Seurat_like", "Ju1", "De1", "De2", "De3", "De4", "De5", "De6", "De7", "De8", "De9", "Magma", "viridis", "magma2", "plasma"

Value

A character vector of color codes.

Examples

colors_for_gradient()
colors_for_gradient(palette = "Ju1")


dputhier/scigenex documentation built on May 31, 2024, 8:59 a.m.