powered by
p.gradientcolor is a function to make easy create gradient pallet. Recommended to color graphics created with metools p.functions.
p.gradientcolor(color1, color2, n)
First gradient color
Last gradient color
Number of colors
Return a vector with colors.
# NOT RUN { 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) # }
Run the code above in your browser using DataLab