Skip to content
Prev 82697 / 398513 Next

Ploting graphics using X tints from a color

Le 13.12.2005 19:34, S??rgio Nunes a ??crit :
Hi,

You want to travel in the RGB space.
See http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=107

plot(0, xlim=c(0,10), ylim=c(0,1))
pal <- rgb(1, 0:10/10,0:10/10)
rect(xleft=0:9, xright=1:10, ytop=1, ybottom=0, col=pal)

Romain