Description Usage Arguments Value Examples
View source: R/gradientcolor.R
p.gradientcolor is a function to make easy create gradient pallet. Recommended to color graphics created with metools p.functions.
1 | p.gradientcolor(color1, color2, n)
|
color1 |
First gradient color |
color2 |
Last gradient color |
n |
Number of colors |
Return a vector with colors.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.