upscale: Upscaling of smooth components

Description Usage Arguments Value Author(s) Examples

View source: R/upscale.R

Description

The analysis is based a wavelet multiresolution analysis using only smooth wavelet components. It is a 2D analysis taking the grid structure and provides scale-specific results for data sampled on a contiguous geographical area. The dataset is assumed to be regular gridded and the grid cells are assumed to be square. The scale-dependent results are graphically displayed.

Usage

1
2
3
4
5
6
7
8
upscale(
  f,
  coord,
  wavelet = "haar",
  wtrafo = "dwt",
  pad = mean(f),
  color.maps = FALSE
)

Arguments

f

A vector.

coord

A matrix of two columns with corresponding cartesian coordinates. Currently only supports integer coordinates.

wavelet

Name of wavelet family. haar, d4, and la8. are possible. haar is the default.

wtrafo

Type of wavelet transform. Either dwt or modwt. dwt is the default.

pad

A numeric value for padding the matrix into a bigger square. Default is set to mean(f).

color.maps

A logical value. If TRUE, produces colorful maps. If FALSE, produces grayscale maps. Default is grayscale. NOW DEPRECATED, color maps will not be produced in future versions.

Value

A set of plots showing the matrix image at each value for level.

Author(s)

Gudrun Carl

Examples

1
2
3
4
5
data(carlinadata)
coords <- carlinadata[ ,4:5]

# Upscaling of smooth components
upscale(carlinadata$land.use, coord = coords)

spind documentation built on Jan. 13, 2021, 6:04 p.m.