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

intFun.grid.define.outlier

Upper and lower threshold values that define outliers


Description

Plotting raster objects that contain extreme outliers lead to plots where most grid cells are presented by a single colour since the color legend covers the entire range of values. To avoid this, the user may define upper and lower threshold values, which can then be set to NA and marked as outliers. The threshold values are defined as the interquartile range multiplied by a user-specified factor.

Usage

intFun.grid.define.outlier(x, y)

Arguments

x

A raster object

y

A number

Value

An upper and a lower threshold value that enclose a range beyond which values are considered as outliers.

Examples

library(raster)
# make some data
data <- runif(100,-10,10)
data <- matrix(data, ncol=10)
data <- raster::raster(data)
# compute upper and lower threshold values for outliers
threshold.values <- intFun.grid.define.outlier(data, 2)

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.