legend_col: Add a custom color gradient to a base R plot

Description Usage Arguments Value

View source: R/Plotting.R

Description

Add a custom color gradient to a base R plot

Usage

1
legend_col(col, level, side = 4)

Arguments

col

a chracter vector as returned from colorRampPalette

level

a factor generated by cutting a continuous variable into many pieces (e.g. 100)

side

where to draw the color gradient, default is 4, i.e. right

Value

added a color gradient to existing plot


fossbert/binilib documentation built on April 23, 2021, 10:31 p.m.