wavecovar: Wavelet covariance analysis

Description Usage Arguments Value Author(s) See Also Examples

View source: R/wavecovar.R

Description

Calculates the wavelet covariance based on a wavelet multiresolution analysis.

Usage

1
wavecovar(f1, f2, coord, wavelet = "haar", wtrafo = "dwt")

Arguments

f1

A vector of length n.

f2

A vector of length n.

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.

Value

Wavelet covariance for f1 and f2.

Author(s)

Gudrun Carl

See Also

waveslim, WRM, covar.plot, scaleWMRR

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(carlinadata)

coords <- carlinadata[ ,4:5]
pc <- covar.plot(carlina.horrida ~ aridity + land.use,
                 data = carlinadata,
                 coord = coords,
                 wavelet = 'd4',
                 wtrafo = 'modwt',
                 plot = 'covar')

pc$plot

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