plotfft | R Documentation |
This function allows to plot a Fast Fourier Transform.
plotfft(
data,
sims.df = NULL,
sims.df.col = "density.bf",
n.hz = 50,
color = "black",
coordy = c(0, secondhighestval)
)
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. |
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
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.