powered by
Add tics and levels to color scale for am image plot.
HOZtics(HOZ, side = 1)
Output coordinates of HOZscale
1=above, 2=below
Jonathan M. Lees<jonathan.lees@unc.edu>
The levels are determined via the pretty function.
ColorScale
pal1 = terrain.colors(100) Z = c(1,40) plot(c(0,1), c(0,1) ) hs = HOZscale(Z, col=pal1) HOZtics(hs, side=1)
Run the code above in your browser using DataLab