Learn R Programming

BSTFA (version 0.1.0)

plot_fourier_bases: Visualize fourier bases.

Description

Visualize fourier bases.

Usage

plot_fourier_bases(
  coords,
  R = 6,
  fine = 100,
  plot.3d = FALSE,
  freq.lon = diff(range(coords[, 1])),
  freq.lat = diff(range(coords[, 2])),
  par.mfrow = c(2, 3)
)

Value

A plot of the Fourier bases for a given frequency.

Arguments

coords

A matrix of coordinates of observed locations.

R

Integer indicating the number of bases to compute.

fine

Number of grid points to include on both axes. Total grid size will be fine^2. Default is 100.

plot.3d

Logical scalar indicating whether to plot the bases. Default is FALSE.

freq.lon

Numeric value indicating the frequency to use for the Fourier bases in the longitude direction. Default is diff(range(coords[,1])).

freq.lat

Numeric value indicating the frequency to use for the Fourier bases in the latitude direction. Default is diff(range(coords[,2])).

par.mfrow

If plot.3d=TRUE, how to divide the plotting window. See help(par) for more details.

Author

Adam Simpson