blues: Create a vector of blues

View source: R/colorVectors.R

bluesR Documentation

Create a vector of blues

Description

blues is useful for getting a set of pretty blues for graphs. These blues come from the 4th through 9th blues from grDevices::blues9, just to give credit where it's due.

Usage

blues(ncolors, shade = "regular")

Arguments

ncolors

number of colors desired

shade

the shade of colors to use, which can be "regular" (default), "darker", "lighter", or "muted" (although "muted" isn't working well atm and it just making everything the same color)

Value

a character vector of colors

Examples

# Create a set of 10 blues.
blues(10)

# Try using scales::show_col() to visualize the colors, ex:
scales::show_col(blues(10))


shirewoman2/Consultancy documentation built on June 1, 2025, 6:05 p.m.