Learn R Programming

oceanmap (version 0.1.6)

digits: 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

Robert K. Bauer

See Also

v.plot

Examples

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

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


Run the code above in your browser using DataLab