Visualize fourier bases.
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)
)A plot of the Fourier bases for a given frequency.
A matrix of coordinates of observed locations.
Integer indicating the number of bases to compute.
Number of grid points to include on both axes. Total grid size will be fine^2. Default is 100.
Logical scalar indicating whether to plot the bases. Default is FALSE.
Numeric value indicating the frequency to use for the Fourier bases in the longitude direction. Default is diff(range(coords[,1])).
Numeric value indicating the frequency to use for the Fourier bases in the latitude direction. Default is diff(range(coords[,2])).
If plot.3d=TRUE, how to divide the plotting window. See help(par) for more details.
Adam Simpson