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

Description Usage Arguments Value Examples

View source: R/intFun.R

Description

This function returns the minimum, maximum, and interval value that can be used to define a color bar legend. The minimum and maximum values are computed for the first and 99th percentile.

Usage

1

Arguments

x

An R object

Value

Minimum, maximum, and interval value for color bar legend

Examples

1
2
3
4
5
6
7
8
library(raster)
library(classInt)
# create a raster object
data <- runif(100,-23,864)
data <- matrix(data, ncol=10)
data <- raster::raster(data)
# Get min, max, and interval for color bar legend
mmi <- intFun.min.max.int.ext(data)

amber documentation built on Aug. 28, 2020, 5:08 p.m.