tim.colors(10)
# returns an array of 10 strings in hex format
#e.g. (red, green, blue) values of (16,255, 239)
# translates to "#10FFEF" .
# veiw some color table choices
set.panel( 1,3)
par( pty="s")
image( outer( 1:20,1:20,"+"), col=tim.colors( 200)) # 200 levels
image( outer( 1:20,1:20,"+"), col=two.colors() )
coltab<- designer.colors(col=c("blue", "grey", "green"), x= c( 0,.3,1) )
image( outer(1:20, 1:20, "+"), col= coltab )
set.panel()
Run the code above in your browser using DataLab