This function generates a vector of colors for a gradient, given a specified palette name.
colors_for_gradient(
palette = c("Je1", "Seurat_Like", "Ju1", "De1", "De2", "De3", "De4", "De5", "De6",
"De7", "De8", "De9", "Magma", "viridis", "magma2", "plasma")
)
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"
A character vector of color codes.
colors_for_gradient()
#> [1] "#27408B" "#3A5FCD" "#3288BD" "#66C2A5" "#ABDDA4" "#E6F598" "#FEE08B"
#> [8] "#FDAE61" "#F46D43" "#D53E4F" "#8B2323"
colors_for_gradient(palette = "Ju1")
#> [1] "#A9D6E5" "#2166AC" "#000000" "#B2182B" "#FFCA3A"