Learn R Programming

RPMG (version 2.2-7)

HOZtics: Add tics to Horizontal Scale

Description

Add tics and levels to color scale for am image plot.

Usage

HOZtics(HOZ, side = 1)

Arguments

HOZ

Output coordinates of HOZscale

side

1=above, 2=below

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Details

The levels are determined via the pretty function.

See Also

ColorScale

Examples

Run this code

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