plotfft: Plot Fast Fourier Transform

View source: R/plot.R

plotfftR Documentation

Plot Fast Fourier Transform

Description

This function allows to plot a Fast Fourier Transform.

Usage

plotfft(
  data,
  sims.df = NULL,
  sims.df.col = "density.bf",
  n.hz = 50,
  color = "black",
  coordy = c(0, secondhighestval)
)

Arguments

data

A vector containing Fourier transformed spectral densities.

sims.df

A dataframe containing simulations, including column "simid". Set to NULL if you don't want to display simulations.

sims.df.col

The name of the column of the simulation dataframe to compare to.

n.hz

The amount of frequencies to be displayed.

color

A color in which the FFT will be drawn.

coordy

A vector containing the minimum and maximum value of the y-coordinates to be drawn.

Details

The FFT can be plotted by itself or in comparison to simulated data sets. GGplot2 is used to draw an image. An experimental 95 Use the full simulation set to correcly identify the 5

Examples

p.fftbf <- plotfft(tblFFT$density.bf, color = "blue")
p.fftbf

p.fftrw <- plotfft(tblFFT$density.rw, sims.df = sims, sims.df.col = "density.rw")
p.fftrw

mrzdcmps/changeofevidence documentation built on Feb. 27, 2025, 3:10 a.m.