intFun.grid.define.outlier: Upper and lower threshold values that define outliers

Description Usage Arguments Value Examples

View source: R/intFun.R

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

1

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

1
2
3
4
5
6
7
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 documentation built on Aug. 28, 2020, 5:08 p.m.