tim.colors {fields} | R Documentation |
Two color scales useful for image plots: a pleasing rainbow style color table patterned after that used in Matlab by Tim Hoar and also a simple colr interpolation between two colors passing through white.
tim.colors(n = 64) two.colors(n=256, start="darkgreen", end="red", middle="white")
n |
Number of color levels. The setting n =64 is the orignal
definition. |
start |
Starting color for lowest values in color scale |
end |
Ending color. |
middle |
Color scale passes through this color at halfway |
Ask Tim about tim.colors!
two.colors
is really about three different colors. For other
colors try fields.color.picker
to view possible choices.
start="darkgreen", end="azure4"
are the options
used to get a nice color scale for rendering aerial photos of ski trails.
(See http://www.image.ucar.edu/Data/MJProject.)
A vector of character strings giving the colors in a hexadecimal format.
topo.colors, terrain.colors, image.plot, quilt.plot, grey.scale
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" . image( outer( 1:20,1:20,"+"), col=tim.colors( 75)) # 75 levels image( outer( 1:20,1:20,"+"), col=two.colors() )