Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

intFun.min.max.int.mod.ref

Range and interval for color bar legend for two raster objects


Description

This function returns the minimum, maximum, and interval value that can be used to define a color bar legend for two raster objects. This is useful when plotting a variable from different data sets (e.g. model and observation-based data).

Usage

intFun.min.max.int.mod.ref(mod, ref)

Arguments

mod

An R object

ref

An R object

Value

Minimum, maximum, and interval value for color bar legend

Examples

library(raster)
library(classInt)
# create a raster object
data <- runif(100,-23,864)
data <- matrix(data, ncol=10)
data <- raster::raster(data)
mod <- data
ref <- data+300
# Get min, max, and interval for color bar legend
mmi <- intFun.min.max.int.mod.ref(mod, ref)

amber

Automated Model Benchmarking R Package

v1.0.3
GPL-3
Authors
Christian Seiler [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.