p.gradientcolor: Create Gradient

Description Usage Arguments Value Examples

View source: R/gradientcolor.R

Description

p.gradientcolor is a function to make easy create gradient pallet. Recommended to color graphics created with metools p.functions.

Usage

1
p.gradientcolor(color1, color2, n)

Arguments

color1

First gradient color

color2

Last gradient color

n

Number of colors

Value

Return a vector with colors.

Examples

1
2
3
4
p.gradientcolor(color1="white",color2="blue",n=10)

v = p.gradientcolor("white","blue",n=20)
barplot(seq.int(from=1,to=20,by=1),col=v)

metools documentation built on July 2, 2020, 2:28 a.m.