color_ramp: Custom color ramps

color_rampR Documentation

Custom color ramps

Description

These color ramp functions create color scales that can be used for making ggplot2 plots and gt tables. Color ramps are based on the palette_wjake color palette.

Usage

make_color_pal(colors, bias = 1)

ramp_blue(x)

ramp_yellow(x)

ramp_yelblu(x)

Arguments

colors

colors to interpolate; must be a valid argument to col2rgb().

bias

a positive number. Higher values give more widely spaced colors at the high end.

x

Colors to pull from the color ramp. Numbers range from 0-1, which is a normalized sliding scale of the color ramp.

Details

make_color_pal can be used to create a color ramp function for any set of valid colors.

ramp_blue, ramp_yellow, and ramp_yelblu are pre-made color ramps based on the blue and yellow colors from the palette_wjake color palette.


wjakethompson/wjake documentation built on June 29, 2024, 7:47 a.m.