covar.plot {spind} | R Documentation |
Plot wavelet variance/covariance
Description
Plots the wavelet variance or covariance for the specified formula. The scale-dependent results are graphically displayed.
Usage
covar.plot(
formula,
data,
coord,
wavelet = "haar",
wtrafo = "dwt",
plot = "covar",
customize_plot = NULL
)
Arguments
formula |
With specified notation according to names in data frame. |
data |
Data frame. |
coord |
A matrix of 2 columns with corresponding x,y-coordinates which have to be integer. |
wavelet |
Type of wavelet: |
wtrafo |
Type of wavelet transform: |
plot |
Either |
customize_plot |
Additional plotting parameters passed to |
Details
Each variable or pair of variables in formula
is passed to wavevar
or
wavecovar
internally, and the result is plotted as a function of level
.
Value
A list containing
1. result
= a vector of results.
2. plot
= a ggplot
object
Author(s)
Gudrun Carl
See Also
Examples
data(carlinadata)
coords <- carlinadata[,4:5]
covariance <- covar.plot(carlina.horrida ~ aridity + land.use - 1,
data = carlinadata,
coord = coords,
wavelet = "d4",
wtrafo = 'modwt',
plot = 'covar')
covariance$plot
covariance$result
variance <- covar.plot(carlina.horrida ~ aridity + land.use - 1,
data = carlinadata,
coord = coords,
wavelet = "d4",
wtrafo = 'modwt',
plot = 'var')
variance$plot
variance$result
[Package spind version 2.2.1 Index]