Plot method for 'swdft' object
# S3 method for swdft
plot(x, freq_type = "cycles", fs = NULL,
hertz_range = NULL, take_log = FALSE, log_thresh = 1e-05,
use_fields = TRUE, scale_shrink = 0.9, zlim = NULL,
xlab = "Window Position", ylab = "Frequency (Cycles/Window)",
title = "SWDFT", cex_main = 1, cex_lab = 1, cex_axis = 1,
xaxis_subset = NULL, custom_xaxis = NULL, custom_yaxis = NULL,
col = "grayscale", display = TRUE, ...)
Object of class 'swdft'. If x$a is complex-valued, it is converted to the squared modulus. If x$a is real-valued, then we assume that it represents the squared
Specify how to display the frequency axis. Either 'cycles' (default), 'fraction', or 'hertz'
sample rate. Used if freq_type='hertz'
integer vector, given by (low, high). Specifies the range of hertz to display and is only used when freq_type='hertz'
logical. Whether to take the log before plotting
numeric. Threshold for smallest possible value. Defaults to .000001, and is used to keep plots from displaying of ~ -40.
logical. Determines whether we use image.plot from the fields package, or 'image' from the graphics package. The advantage of image.plot is that we get a color scale, so the default is TRUE
Proportion between 0 and 1 to shrink the scale
Custom z range
Custom x-label
Custom y-label
Custom title
how large to make the title
how large to make the labels
how large to make the axis labels
subset of x-axis (time / window position) for plotting
Defaults to NULL. Otherwise, used to change the x-axis
Defaults to NULL. Otherwise, used to change the y-axis
defaults to grayscale, can also be 'tim.colors' from fields package
logical. Defaults to TRUE, only used for testing purposes, so it should always be TRUE.
optional arguments to match the plot generic function