create_color_ramp: Create and visualise a color ramp

Description Usage Arguments Value Examples

View source: R/create_color_ramp.R

Description

Create and visualise a color ramp

Usage

1
2
3
4
5
create_color_ramp(
  col_range = c("red", "yellow", "springgreen", "royalblue"),
  n = 30,
  plot = TRUE
)

Arguments

col_range

Colors to transition from/to

n

Number of colors to create

plot

whether to plot the colors

Value

A visual of colors and a character vector of colors

Examples

1
create_color_ramp(c('#a4eaff', '#0a5090'))

aljabadi/Altools documentation built on Jan. 17, 2022, 8:55 a.m.