digits {oceanmap}R Documentation

returns recognized number of digits for colorbar ticklabels

Description

returns recognized number of digits for colorbar ticklabels. Used by v.plot inside v.

Usage

digits(x)

Arguments

x

a numeric value. If x >= 1 output is set to zero (meaning ticklabels will have no digit positions).

Author(s)

Robert K. Bauer

See Also

v.plot

Examples

## Example 1: ticklabels with no digits
digits(1000)
digits(1)
digits(1.01)

## Example 2: ticklabels with digits
digits(0.1)
digits(0.01)



[Package oceanmap version 0.1.6 Index]