make_pixel_states: Deriving qualitative pixel states from raster data

Description Usage Arguments Details Value Author(s) Examples

View source: R/make_pixel_states.R

Description

make_pixel_states takes a raster stack or brick to qualify pixel following scale either defined by the user or derived from the natural breaks of data following the following boxplot statistics and outliers.

Usage

1
2
3
make_pixel_states(x, split_IQR = FALSE, custum_rclmat = NULL,
  sample = FALSE, size = 1000, ties = "NA", op = c("sampler",
  "proba"), filename = "", inparallel = NULL, ...)

Arguments

x

a raster object

split_IQR

logical. Should the inter-quartile range be split at the median to form different ranges? The default is TRUE

custum_rclmat

numeric vector indicating the limits based on which to reclassify x.

sample

Logical. Should the data be sampled? If TRUE, the result is based on a ramdon sampling of the original data.

size

Integer. Sample size (if sample is TRUE or if the data cannot be process in memory).

ties

character. Indicates how to treat ties. Either 'random', 'lowest', 'highest', 'first', or 'NA'

op

character string indicating the type of returned value: either raw states or their probabilities

filename

character. Output filename (optional)

inparallel

integer indicating the number of processes to run in parallel

...

Additional arguments as for writeRaster

Details

The ranges are bounded by the lower outlier (if any), extreme of the lower whisker, the lower ‘hinge’, the median, the upper ‘hinge’, the extreme of the upper whisker, and the upper outlier (if any).

Value

A raster brick where each layers correspond to one of the states.

Author(s)

Issoufou Liman

Examples

1
2
sample <- rnorm(100)
get_boxplot_range_1d (sample)

Issoufou-Liman/SpatialProbs documentation built on Oct. 30, 2019, 7:27 p.m.