RTOMO (version 1.1-6)

HOZscale: add horizontal color scale

Description

Add horizontal color scale to existing plot.

Usage

HOZscale(z, col, units = "", SIDE = 1, s1 = 0.4, s2 = 0.95)

Arguments

z

image matrix

col

color palette

units

character string, units

SIDE

Side of the plot

s1

percent of margin for bottom

s2

percent of margin for top

Value

Graphical Side effect

Examples

Run this code
# NOT RUN {
data(volcano)
image(volcano, col=terrain.colors(100))

HOZscale(volcano,terrain.colors(100) , units = "", SIDE = 1, s1 = 0.4, s2 = 0.95)


# }

Run the code above in your browser using DataLab