plotGradient: Gradients for Plots

Description Usage Arguments Examples

View source: R/functions.R

Description

A function to make color gradients for plots.

Usage

1
2
3
4
5
6
7
8
plotGradient(
  input,
  left_color = c(0, 0, 1, 0.5),
  right_color = c(1, 0, 0, 0.5),
  NA_color = c(0.5, 0.5, 0.5, 0.5),
  transparency = NULL,
  reference_scale = NA
)

Arguments

input

Input values to map to a color spectrum

Examples

1

willschulz/schulzfunctions documentation built on Jan. 29, 2022, 6:02 a.m.