Skip to contents

This function generates a palette of gray colors.

Usage

gray.palette(n, lower = 0.3, upper = 0.7)

Arguments

n

Integer, the number of gray shades to generate.

lower

Numeric, the lower bound for the gray scale (default is 0.3).

upper

Numeric, the upper bound for the gray scale (default is 0.7).

Value

A vector of gray colors.

Examples

gray.palette(5)
#> [1] "#4D4D4D" "#666666" "#808080" "#999999" "#B3B3B3"