Learn R Programming

amber (version 1.0.3)

intFun.min.max.int.raw: Range and interval for color bar legend

Description

This function returns the minimum, maximum, and interval value that can be used to define a color bar legend. Contrary to intFun.min.max.int, this function does not use any rounding to find pretty values for min, max, int, which is an advantage for plotting data with extremely small numerical values.

Usage

intFun.min.max.int.raw(x)

Arguments

x

An R object

Value

Minimum, maximum, and interval value for color bar legend

Examples

Run this code
# NOT RUN {
library(raster)
library(classInt)
# create a raster object
data <- runif(100,0,10^(-5))
data <- matrix(data, ncol=10)
data <- raster::raster(data)
# Get min, max, and interval for color bar legend
mmi <- intFun.min.max.int.raw(data)

# }

Run the code above in your browser using DataLab