digits: returns recognized number of digits for colorbar ticklabels

Description Usage Arguments Author(s) See Also Examples

View source: R/digits.r

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
## Example 1: ticklabels with no digits
digits(1000)
digits(1)
digits(1.01)

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

oceanmap documentation built on July 4, 2017, 9:08 a.m.

Related to digits in oceanmap...