Learn R Programming

munsell (version 0.4.3)

pbgyr: Change the hue of a munsell colour

Description

Moves the hue of a munsell colour in the direction purple->blue->green->yellow->red->purple

Usage

pbgyr(col, steps = 1)

Arguments

col

character vector of Munsell colours

steps

number of hue steps to take

Value

character vector of Munsell colours

Examples

Run this code
# NOT RUN {
my_red <- "2.5R 4/8"
pbgyr(my_red)
plot_mnsl(c(my_red, pbgyr(my_red, 2), pbgyr(my_red, 4)))
# }

Run the code above in your browser using DataLab