Learn R Programming

munsell (version 0.5.1)

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)

Value

character vector of Munsell colours

Arguments

col

character vector of Munsell colours

steps

number of hue steps to take

Examples

Run this code
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