kColor: Generate Gradient from Continuous Variable
Description
Assign colors based on a continuous variable. Useful for
plotting functions where you would like to generate a
gradient based on (a function of) the continuous
variables you are plotting quickly.
Usage
kColor(x, m = 10,
cols = c("darkorange", "grey60", "darkblue"))
Arguments
x
a continuous variable to generate colors over
m
the number of distinct colors you wish to pull
from the pallete